Module: Atom

Defined in:
lib/atom.rb,
lib/atom/pub.rb,
lib/atom/version.rb,
lib/atom/xml/parser.rb,
lib/atom/configuration.rb

Overview

Copyright © 2008 The Kaphan Foundation

For licensing information see LICENSE.

Please visit www.peerworks.org/contact for further information.

Defined Under Namespace

Modules: Pub, SimpleExtensions, VERSION, Xml Classes: Category, Configuration, Content, Entry, Feed, Generator, Link, Links, LoadError, Person, SerializationError, Source

Constant Summary collapse

NAMESPACE =
'http://www.w3.org/2005/Atom'

Class Method Summary collapse

Class Method Details

.to_attrname(element_name) ⇒ Object



34
35
36
# File 'lib/atom/xml/parser.rb', line 34

def self.to_attrname(element_name)
  element_name.to_s.sub(/:/, '_').gsub('-', '_').to_sym
end