On 5/4/05, Austin Ziegler <halostatue / gmail.com> wrote:
> On 5/4/05, Joao Pedrosa <joaopedrosa / gmail.com> wrote:
> > dewd@heaven:~ $ ruby -v
> > ruby 1.9.0 (2005-05-01) [i686-linux]
> > dewd@heaven:~ $ irb
> > irb(main):001:0> def opa s
> > irb(main):002:1> 'z'
> > irb(main):003:1> end
> > => nil
> > irb(main):004:0> opa 'kct'
> > => "z"
> > irb(main):005:0> opa = opa('kct')
> > NoMethodError: undefined method `call' for nil:NilClass
> >         from (irb):5
> > irb(main):006:0> exit
> 
> This looks like a bug in an on-purpose experimental feature.
> 

Can someone fill me in on what's going on here?

It looks like the code reads something like:

  def opa(s)
    'z' 
  end

So,
  opa('kct')
should return 'z'.

But I have no idea what
  opa = opa('kct')
is trying to do.