Sha256: ad6785037ac90938cc29ec701f93cfc239ed78907d5ef2a3646d74e9a5527079
Contents?: true
Size: 826 Bytes
Versions: 1
Compression:
Stored size: 826 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/instance_intercept.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/more/instance_intercept.rb' require 'test/unit' class TestModule < Test::Unit::TestCase module A def f ; "F" ; end def g ; "G" ; end instance_interception do def f( target, *args, &blk ) '{' + target.super + '}' end def g( target, *args, &blk ) '{' + target.super + '}' end end end class X def f ; super ; end include A def g ; super ; end end def test_1_01 x = X.new assert_equal( "{F}", x.f ) assert_equal( "{G}", x.g ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/more/test_instance_intercept.rb |