Sha256: 8069a8115f4ce6f4d7b4aa7eea8cd86be4f9a651f446ceedc271b5f7ef121f0e
Contents?: true
Size: 379 Bytes
Versions: 5
Compression:
Stored size: 379 Bytes
Contents
class Donut < Pastry has_defaults :flavor => "cream", :name => "Cream" has_defaults :maker => proc { "Dunkin Donuts" } has_defaults :weight => proc { weigh } def flavor @flavor_getter_called = true read_attribute(:flavor) end def flavor=(value) @flavor_setter_called = true write_attribute(:flavor, value) end def weigh "a lot" end end
Version data entries
5 entries across 3 versions & 1 rubygems