Class: Csv2hash::Cell
- Inherits:
-
Object
- Object
- Csv2hash::Cell
- Defined in:
- lib/csv2hash/cell.rb
Instance Attribute Summary collapse
-
#rules ⇒ Object
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Cell
constructor
A new instance of Cell.
Constructor Details
#initialize(*args) ⇒ Cell
Returns a new instance of Cell.
10 11 12 13 |
# File 'lib/csv2hash/cell.rb', line 10 def initialize *args self.rules = args. Csv2hash::Coercers::YamlCoercer.new(rules).deserialize! end |
Instance Attribute Details
#rules ⇒ Object
Returns the value of attribute rules.
8 9 10 |
# File 'lib/csv2hash/cell.rb', line 8 def rules @rules end |