Sha256: 9b04d8f3caa01327d3fb1056702a7a7daa66e93741bae0ebf7ab6d5c540198ec
Contents?: true
Size: 969 Bytes
Versions: 3
Compression:
Stored size: 969 Bytes
Contents
module Super module S1 class A def foo(a) a << "A#foo" bar(a) end def bar(a) a << "A#bar" end end class B < A def foo(a) a << "B#foo" super(a) end def bar(a) a << "B#bar" super(a) end end end module S2 class A def baz(a) a << "A#baz" end end class B < A def foo(a) a << "B#foo" baz(a) end end class C < B def baz(a) a << "C#baz" super(a) end end end module S3 class A def foo(a) a << "A#foo" end def self.foo(a) a << "A::foo" end def self.bar(a) a << "A::bar" foo(a) end end class B < A def self.foo(a) a << "B::foo" super(a) end def self.bar(a) a << "B::bar" super(a) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.2.2 | opals/opal/opal/spec/fixtures/super.rb |
opal-0.2.0 | opals/opal/opal/spec/fixtures/super.rb |
opal-0.1.0 | opals/opal/spec/fixtures/super.rb |