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 (c) 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

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

Class Method Summary (collapse)

Class Method Details

+ (Object) to_attrname(element_name)



32
33
34
# File 'lib/atom/xml/parser.rb', line 32

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