Here's another one.  This one *looks* like you can simplify it further, but I 
haven't been able to.

--begin--
require 'test/unit'
  
module ModA
  def methodA
    $stderr.puts "It Works!"
  end
end
    
module ModB
  include ModA
  
  def methodB
    methodA
  end
end

module ModC
  include ModB
  
  def methodC
    methodB
  end
end

class DTest < Test::Unit::TestCase

  include ModC

  def testD
    methodC
  end

end


--end--


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to