Sha256: 80d54556f119a6fff26f300dd579fe2faf4d7d952c8a75d8c674198e42dcc4c6
Contents?: true
Size: 456 Bytes
Versions: 22
Compression:
Stored size: 456 Bytes
Contents
require 'facet/module/wrap_method' class Module private alias_method( :wrap, :wrap_method ) end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCModule < Test::Unit::TestCase def fixture_method; "A"; end wrap( :fixture_method ) { |old| old.call + "B" } def test_wrap assert_equal( "AB", fixture_method ) end end =end
Version data entries
22 entries across 22 versions & 1 rubygems