Sha256: 3703f7e7414af56ce211ef7656c57f2c980fc72abecb98774be6161e129e3ec0

Contents?: true

Size: 359 Bytes

Versions: 14

Compression:

Stored size: 359 Bytes

Contents

require 'arrayfields'

Entry = Array.struct :path, :stat

entry = Entry[ File.basename(__FILE__), File.stat(__FILE__) ]
p entry[:path]   #=> "e.rb"
p entry.path     #=> "e.rb"

entry.path = 'foo'
p entry[:path]   #=> "foo"
p entry.path     #=> "foo"

entry.path 'bar' # getter acts as setter without args
p entry['path']  #=> "bar"
p entry.path     #=> "bar"

Version data entries

14 entries across 14 versions & 2 rubygems

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