Sha256: ef69eddc0e1ae73f27a516b32d4129100a41da01cabdf12f2b7ce2f5c9134470

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

require 'facets/core/module/rename_method'
class Module
  private
  alias_method( :rename, :rename_method )
end


#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
=begin test

  require 'test/unit'

  class TCModule < Test::Unit::TestCase

    def a; "A" ; end

    rename :b, :a

    def test_rename
      assert( ! respond_to?( :a ) )
      assert( respond_to?( :b ) )
    end

  end

=end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-1.8.51 lib/facets/core/module/rename.rb
facets-1.8.49 lib/facets/core/module/rename.rb
facets-1.8.54 lib/facets/core/module/rename.rb