unknown wrote:
> Hi --
> > 
> It should.  Try again :-)
> 
>
Thanks David, I thought it  should...

It would appear that the problem is related to how the control is passed 
between the classes.  I am instantiating Inner from Outer...

I have reduced my program to its essentials:

module Parser
  def lineno
    10
  end
end


class Outer
  include Parser

  def initialize ()

    puts lineno    # prints 10
    x = Inner.new
  end

  class Inner

  def initializ
    puts lineno # gives error
  end
end

Outer.new()


-- 
Posted via http://www.ruby-forum.com/.