Sha256: 9adedee0219a8bbe1b62caa5571952e40b5aa7c4d9103e3a6abca0f79960aefb
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
# license is MIT $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'volute' # gem install volute class Light include Volute attr_accessor :colour attr_accessor :changed_at end volute Light do volute :colour do object.changed_at = Time.now end end l = Light.new p l # => #<Light:0x10014c480> l.colour = :blue l.colour = :red p l # => #<Light:0x10014c480 @changed_at=Fri Oct 08 20:01:52 +0900 2010, @colour=:blue>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
volute-0.1.1 | examples/light.rb |