Sha256: 34c8fbc89dbeb668e50f2ef3f086cae01c12ed16d4d747e72273c98f948502df
Contents?: true
Size: 293 Bytes
Versions: 10
Compression:
Stored size: 293 Bytes
Contents
require 'arrayfields' # # the Array.fields methods generates an instance with those fields # a = Array.fields :a, :b, :c a[:a] = a[:c] = 42 p a #=> [42, nil, 42] p a.fields #=> [:a, :b, :c] p a.values #=> [42, nil, 42]
Version data entries
10 entries across 10 versions & 2 rubygems