From: Mark T on 14 Apr 2010 23:30 Can I extend a class to add an attr_accessor? So that getter & setter are created? MarkT
From: Robert Klemme on 15 Apr 2010 01:58 On 15.04.2010 05:30, Mark T wrote: > Can I extend a class to add an attr_accessor? > So that getter& setter are created? Yes. > How? class AnyClass attr_accessor :foo end Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
|
Pages: 1 Prev: Is there a way to make class and object constants in Ruby? Next: Safer monkey-patching? |