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