Ruby.exe and Rubycompiler.exe svn 145
(extracted from optparse.rb)
module Arguable
def self.extend_object(obj)
puts "*#{self.class}*" # <- *Module*
puts "*#{super.class}*" # <- breaks, should be *Array*
super
obj.instance_eval {@optparse = nil}
end
def diddle
puts "diddling"
end
end
ARGV.extend(Arguable)
ARGV.diddle # <- should print 'diddling'
Original issue reported on code.google.com by djl.rif...@googlemail.com on 23 Oct 2007 at 12:48
Original issue reported on code.google.com by
djl.rif...@googlemail.com
on 23 Oct 2007 at 12:48