Class: Ruote::RadialReader::Transformer::Attribute
- Inherits:
-
Object
- Object
- Ruote::RadialReader::Transformer::Attribute
- Defined in:
- lib/ruote/reader/radial.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#val ⇒ Object
readonly
Returns the value of attribute val.
Instance Method Summary collapse
-
#initialize(key, val) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(key, val) ⇒ Attribute
Returns a new instance of Attribute.
161 162 163 164 |
# File 'lib/ruote/reader/radial.rb', line 161 def initialize(key, val) @key = key.to_s.gsub(/-/, '_') @val = val end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
160 161 162 |
# File 'lib/ruote/reader/radial.rb', line 160 def key @key end |
#val ⇒ Object (readonly)
Returns the value of attribute val.
160 161 162 |
# File 'lib/ruote/reader/radial.rb', line 160 def val @val end |