Sha256: af3abc7e93ac7e2c1379627aa37c25ef88eb0473ad914830df6a1b9c8d33cf31
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
require 'facets/core/module/redefine_method' class Module private alias_method( :redef, :redefine_method ) end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCModule < Test::Unit::TestCase def fixture_method_b; "b"; end redef( :fixture_method_b ) { "x" } def test_redef assert_equal( "x", fixture_method_b ) end end =end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | lib/facets/core/module/redef.rb |
facets-1.8.51 | lib/facets/core/module/redef.rb |
facets-1.8.54 | lib/facets/core/module/redef.rb |