Diskussion:Attr
Aus Scientia
Version vom 27. März 2008, 08:14 Uhr von Hanmac (Diskussion | Beiträge)
attr ist auch für sich schon ein befehl:
module Mod attr :size, true end #is equivalent to: module Mod def size @size end def size=(val) @size = val end end
--Hanmac