attr_accessor(...) public

Equivalent to calling ``attrsymbol, true'' on each symbol in turn.

   module Mod
     attr_accessor(:one, :two)
   end
   Mod.instance_methods.sort   #=> ["one", "one=", "two", "two="]
Show source
Register or log in to add new notes.