Hi.

On Dec 13, 2003, at 3:37 AM, Yukihiro Matsumoto wrote:

> Hmm, I like
>
>   attribute "a", "+r", "-w"

What if I go crazy and want to define a method named +r ?

  % ruby -e'
  class Foo
    attr_accessor :"+r"
  end
  foo = Foo.new
  foo.send(:"+r=","foo")
  p foo.send(:"+r")
  '
  "foo"

Yes, this is insane, but this works for now.  In the original idea you 
can use such a strange name.  But using a string, this name would 
conflict with the attribute specifier.

-- 
mput <root / mput.dip.jp>