Class: Csv2hash::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/csv2hash/cell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.extract_options!
  Csv2hash::Coercers::YamlCoercer.new(rules).deserialize!
end

Instance Attribute Details

#rulesObject

Returns the value of attribute rules.



8
9
10
# File 'lib/csv2hash/cell.rb', line 8

def rules
  @rules
end