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

Version Path
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/sample/c.rb
arrayfields-4.9.2 sample/c.rb
arrayfields-4.9.0 sample/c.rb
arrayfields-4.7.1 sample/c.rb
arrayfields-4.7.3 sample/c.rb
arrayfields-4.5.0 sample/c.rb
arrayfields-4.7.0 sample/c.rb
arrayfields-4.7.2 sample/c.rb
arrayfields-4.6.0 sample/c.rb
arrayfields-4.7.4 sample/c.rb