Sha256: 5331db618b6e6238b15ce250bb11213252b2b7a694a31e449917e8aa27f38723

Contents?: true

Size: 152 Bytes

Versions: 4

Compression:

Stored size: 152 Bytes

Contents

module Kernel

  def meta_class(&block)
    class << self
      yield if block_given?
      self
    end
  end
  alias :singleton_class :meta_class

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
unextendable-0.1.7 lib/unextendable/kernel.rb
unextendable-0.1.6 lib/unextendable/kernel.rb
unextendable-0.1.5 lib/unextendable/kernel.rb
unextendable-0.1.4 lib/unextendable/kernel.rb