Class: SAXMachine::SAXConfig::AncestorConfig
- Inherits:
-
Object
- Object
- SAXMachine::SAXConfig::AncestorConfig
- Defined in:
- lib/sax-machine/sax_ancestor_config.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#setter ⇒ Object
readonly
Returns the value of attribute setter.
Instance Method Summary collapse
- #column ⇒ Object
-
#initialize(name, options) ⇒ AncestorConfig
constructor
A new instance of AncestorConfig.
Constructor Details
#initialize(name, options) ⇒ AncestorConfig
Returns a new instance of AncestorConfig.
7 8 9 10 11 12 |
# File 'lib/sax-machine/sax_ancestor_config.rb', line 7 def initialize(name, ) @name = name.to_s @as = [:as] @setter = "#{@as}=" end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/sax-machine/sax_ancestor_config.rb', line 5 def name @name end |
#setter ⇒ Object (readonly)
Returns the value of attribute setter.
5 6 7 |
# File 'lib/sax-machine/sax_ancestor_config.rb', line 5 def setter @setter end |
Instance Method Details
#column ⇒ Object
14 15 16 |
# File 'lib/sax-machine/sax_ancestor_config.rb', line 14 def column @as || @name.to_sym end |