summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-03-28 15:48:32 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-03-29 11:00:52 -0700
commit1ac7f63f00c517c6dff67be8d927b968c7bcb6ea (patch)
tree8b4327a69f2fbe268526ad828c35019154f7a4f9 /lib/puppet/util/rdoc/code_objects.rb
parent29f3dda2aaa4a6225baaa5819ebad32909b01f93 (diff)
downloadpuppet-1ac7f63f00c517c6dff67be8d927b968c7bcb6ea.tar.gz
puppet-1ac7f63f00c517c6dff67be8d927b968c7bcb6ea.tar.xz
puppet-1ac7f63f00c517c6dff67be8d927b968c7bcb6ea.zip
(#6830) Fix tests that depended on special inherited behavior
class Foo def self.inherited(subclass) puts "#{subclass.inspect} inherited from #{self}" end end class Bar < Foo end a = Class.new(Bar) do def self.to_s "some other class" end end In Ruby 1.9 this prints Bar inherited from Foo #<Class:0x0000010086c198> inherited from Bar In Ruby 1.8 the to_s override used to be in effect so printed: Bar inherited from Foo some other class inherited from Bar Reviewed-by: Jesse Wolfe <jesse@puppetlabs.com>
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions