Class: SAXMachine::SAXConfig::CollectionConfig
- Inherits:
-
Object
- Object
- SAXMachine::SAXConfig::CollectionConfig
- Defined in:
- lib/sax-machine/sax_collection_config.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #accessor ⇒ Object
- #handler ⇒ Object
-
#initialize(name, options) ⇒ CollectionConfig
constructor
A new instance of CollectionConfig.
Constructor Details
#initialize(name, options) ⇒ CollectionConfig
Returns a new instance of CollectionConfig.
7 8 9 10 11 |
# File 'lib/sax-machine/sax_collection_config.rb', line 7 def initialize(name, ) @name = name.to_s @class = [:class] @as = [:as].to_s end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/sax-machine/sax_collection_config.rb', line 5 def name @name end |
Instance Method Details
#accessor ⇒ Object
17 18 19 |
# File 'lib/sax-machine/sax_collection_config.rb', line 17 def accessor as end |
#handler ⇒ Object
13 14 15 |
# File 'lib/sax-machine/sax_collection_config.rb', line 13 def handler SAXHandler.new(@class.new) end |