Sha256: fd7708d97ac245ca00872edf0ee923c68dfa336f81d0227cb9474ce336acca7c

Contents?: true

Size: 302 Bytes

Versions: 11

Compression:

Stored size: 302 Bytes

Contents

require 'active_support/core_ext/array/extract_options'

require_relative 'coercers/yaml_coercer'

module Csv2hash
  class Cell

    attr_accessor :rules

    def initialize *args
      self.rules = args.extract_options!
      Csv2hash::Coercers::YamlCoercer.new(rules).deserialize!
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
csv2hash-0.7.7 lib/csv2hash/cell.rb
csv2hash-0.7.6 lib/csv2hash/cell.rb
csv2hash-0.7.5 lib/csv2hash/cell.rb
csv2hash-0.7.3 lib/csv2hash/cell.rb
csv2hash-0.7.2 lib/csv2hash/cell.rb
csv2hash-0.7.1 lib/csv2hash/cell.rb
csv2hash-0.7.0 lib/csv2hash/cell.rb
csv2hash-0.6.8 lib/csv2hash/cell.rb
csv2hash-0.6.7 lib/csv2hash/cell.rb
csv2hash-0.6.6 lib/csv2hash/cell.rb
csv2hash-0.6.5 lib/csv2hash/cell.rb