From: Intransition Date: 2009-11-05T06:21:09+09:00 Subject: Re: super w/ implicit arguments in Ruby 1.9 On Nov 4, 12:04 pm, Intransition wrote: > On Nov 4, 11:13 am, Rob Biedenharn > wrote: > > > read the line like the parser will: > > >    defined?(super) ? (super).__send__((op),(obj)) : (obj).dup > > > the object that gets __send__ is the return value of super.  Can you   > > try: > >    defined?(super) ? super().__send__(op,obj) : obj.dup > > so that the implicit args of super aren't an issue? (because you   > > explicitly give an empty arg list) > > Doh. I should have seen that. Thank you for helping my poor little > overtaxed brain ;) > > Unfortunately now I get: > >   3) Error: > test_02_002(TC_Inheritor_02): > NoMethodError: super: no superclass method `koko' for > TC_Inheritor_02::C:Class >     /mnt/repos/rubyworks/facets/lib/more/facets/inheritor.rb:70:in > `block (2 levels) in inheritor' >     /mnt/repos/rubyworks/facets/test/more/test_inheritor.rb:31:in > `test_02_002' > > Does defined?(super) not work in 1.9? If so, how does one work around? No, it works. I checked. So it's something else. Thanks for the help.