Class: SAXMachine::SAXConfig::AncestorConfig
- Inherits:
-
Object
- Object
- SAXMachine::SAXConfig::AncestorConfig
- Defined in:
- lib/sax-machine/config/sax_ancestor.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.
6 7 8 9 10 |
# File 'lib/sax-machine/config/sax_ancestor.rb', line 6 def initialize(name, ) @name = name.to_s @as = [:as] @setter = "#{@as}=" end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/sax-machine/config/sax_ancestor.rb', line 4 def name @name end |
#setter ⇒ Object (readonly)
Returns the value of attribute setter.
4 5 6 |
# File 'lib/sax-machine/config/sax_ancestor.rb', line 4 def setter @setter end |
Instance Method Details
#column ⇒ Object
12 13 14 |
# File 'lib/sax-machine/config/sax_ancestor.rb', line 12 def column @as || @name.to_sym end |