Method: Atom::Xml::Parseable::DeclarationMethods#attribute
- Defined in:
- lib/atom/xml/parser.rb
#attribute(*names) ⇒ Object
205 206 207 208 209 210 |
# File 'lib/atom/xml/parser.rb', line 205 def attribute(*names) names.each do |name| attr_accessor name.to_s.sub(/:/, '_').to_sym self.attributes << name.to_s end end |