Sha256: 1f4cff968f5db507cd321380499b8c26efdc408aba5ad9ae1d7bcafe13827b23

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require 'nano/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

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 lib/nano/module/redef.rb