Sha256: 2fec8391138577a673db53c9c73391f360f084d8f42f7cf91f88235bbb419acd
Contents?: true
Size: 277 Bytes
Versions: 2
Compression:
Stored size: 277 Bytes
Contents
# # basic usage is like attr, but note that attribute defines three methods, # getter, setter, and query # require 'attributes' class C attribute 'a' end c = C.new c.a = 42 # setter p c.a # getter p 'forty-two' if c.a? # query
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
attributes-3.0.0 | samples/a.rb |
attributes-3.0.1 | samples/a.rb |