On Fri, 19 Mar 2004 08:25:45 +0900, Bill Kelly wrote:
> From: "David A. Black" <dblack / wobblini.net>
> [...]
>> Kernel.spleen("foo")
> 
> Here's what I'm getting:
> 
> $ cat test.rb
[snip]

It seems difficult to invoke.. I tried this..
but somehow a symbol is expected ?


server> ruby a.rb
"foo"
a.rb:4:in `public': nil is not a symbol (TypeError)
        from a.rb:4
server> expand -t2 a.rb
def m
  p "foo"
end
public m
class C
  def m(scope)
    eval("m", scope)
  end
end
C.m(binding)
server>

--
Simon Strandgaard