Sha256: 233c96764a2ebd1c565d64c768cbbe392cbd8ae297a6aad62aafd616161895e2
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 KB
Contents
module Kernel def foo puts "Kernel#foo" super rescue NoMethodError end end class Object def foo puts "Object#foo" super rescue NoMethodError end end module GreatUncle def foo puts "GreatUncle#foo" super rescue NoMethodError end end module GreatAunt def foo puts "GreatAunt#foo" super rescue NoMethodError end end class Grandaddy def foo puts "Grandaddy#foo" super rescue NoMethodError end include GreatUncle, GreatAunt end module Uncle def foo puts "Uncle#foo" super rescue NoMethodError end end module Aunt def foo puts "Aunt#foo" super rescue NoMethodError end end class Daddy < Grandaddy def foo puts "Daddy#foo" super rescue NoMethodError end include Uncle, Aunt end module Brother def foo puts "Brother#foo" super rescue NoMethodError end end module HalfSister def foo puts "HalfSister#foo" super rescue NoMethodError end end module Sister def foo puts "Sister#foo" super rescue NoMethodError end include HalfSister end class Sonny < Daddy def foo puts "Sonny#foo" super rescue NoMethodError end include Brother, Sister end sonny = Sonny.new class << sonny def foo puts "sonny#foo" super rescue NoMethodError end end sonny.foo
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
introspection-0.0.4 | samples/instance.rb |
introspection-0.0.3 | samples/instance.rb |
introspection-0.0.2 | samples/instance.rb |
introspection-0.0.1 | samples/instance.rb |