Sha256: d7b34721c4b98a2f0afd652effd5501c2998fcd3c5479a4721225e6b6443f835

Contents?: true

Size: 212 Bytes

Versions: 6

Compression:

Stored size: 212 Bytes

Contents

require 'facets/core/kernel/meta_class'

module Kernel

  # Alias a method defined in the metaclass (ie. singleton class).

  def meta_alias(*args)
    meta_class do
      alias_method(*args)
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facets-1.8.51 lib/facets/core/kernel/meta_alias.rb
facets-1.8.0 lib/facets/core/kernel/meta_alias.rb
facets-1.8.20 lib/facets/core/kernel/meta_alias.rb
facets-1.8.49 lib/facets/core/kernel/meta_alias.rb
facets-1.8.54 lib/facets/core/kernel/meta_alias.rb
facets-1.8.8 lib/facets/core/kernel/meta_alias.rb