Sha256: 2889382d3c71b73267a4ffedfac5070e718e3343abe1d079ec1686155511eba3

Contents?: true

Size: 237 Bytes

Versions: 5

Compression:

Stored size: 237 Bytes

Contents

require 'bundler/setup'
require 'array_hasher'

f = ArrayHasher.new_formatter([
  [:a, :int], [:b, :float], [:c, proc {|v| v.split(',') }], [:d, nil, range: 3..-1]
])
puts f.parse(['number: 123', '$ 123.1', 'a,b,c', 'd1', 'd2', 'd3'])


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
array_hasher-0.1.4 examples/base.rb
array_hasher-0.1.3 examples/base.rb
array_hasher-0.1.2 examples/base.rb
array_hasher-0.1.1 examples/base.rb
array_hasher-0.1.0 examples/base.rb