Sha256: 0ecf0c24511715be04f6d14d66405cdc41aa2457b0cd0395be3a344493775ccf
Contents?: true
Size: 294 Bytes
Versions: 3
Compression:
Stored size: 294 Bytes
Contents
require "iolite" # Use require # define Hash#to_proc require "iolite/adaptored/hash" include Iolite::Placeholders p ({arg1 => arg2}).to_proc.call(:name, "homu") # => {:name=>"homu"} p ["homu", "mami", "mado"]. map &({ name: arg1 }) # => [{:name=>"homu"}, {:name=>"mami"}, {:name=>"mado"}]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iolite-0.0.3 | example/hash.rb |
iolite-0.0.2 | example/hash.rb |
iolite-0.0.1 | example/hash.rb |