Sha256: 7aea4bc3f3fc5b010051520bd564d4b1b152a0e95b242943fc1a39f5758a7114

Contents?: true

Size: 292 Bytes

Versions: 5

Compression:

Stored size: 292 Bytes

Contents

require 'arrayfields'
#
# the Array.fields methods generates an insance 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

5 entries across 5 versions & 1 rubygems

Version Path
arrayfields-4.0.0 sample/c.rb
arrayfields-4.1.0 sample/c.rb
arrayfields-4.3.0 sample/c.rb
arrayfields-4.4.0 sample/c.rb
arrayfields-4.2.0 sample/c.rb