Sha256: 589d2c41f6cc5fb3ffe1c9a7d95ade6e816b3895722f45bd5790935eacc441d2

Contents?: true

Size: 365 Bytes

Versions: 1

Compression:

Stored size: 365 Bytes

Contents

require 'bundler/setup'
require 'array_hasher'

puts "Undefined data type 'bookname'"
ArrayHasher.csv_each(File.expand_path('../test.csv', __FILE__)) do |line|
  puts line
end

puts "\nDefined 'bookname' wrap with <>"
ext_types = {bookname: proc {|v| "<#{v}>" }}
ArrayHasher.csv_each(File.expand_path('../test.csv', __FILE__), ext_types) do |line|
  puts line
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
array_hasher-0.1.4 examples/csv.rb