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, Xml Classes: Category, Configuration, Content, Entry, Feed, Generator, Link, Links, LoadError, Person, SerializationError, Source

Constant Summary

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

Class Method Summary collapse

Class Method Details

.to_attrname(element_name) ⇒ Object



42
43
44
# File 'lib/atom/xml/parser.rb', line 42

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