Class: SAXMachine::SAXConfig::AncestorConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/sax-machine/sax_ancestor_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @name = name.to_s

  @as = options[:as]
  @setter = "#{@as}="
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/sax-machine/sax_ancestor_config.rb', line 5

def name
  @name
end

#setterObject (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

#columnObject



14
15
16
# File 'lib/sax-machine/sax_ancestor_config.rb', line 14

def column
  @as || @name.to_sym
end