Sha256: 23723b36d4f5d1d211384d90a19786705abe72da7d18ca06b009e5628925bd6e

Contents?: true

Size: 221 Bytes

Versions: 11

Compression:

Stored size: 221 Bytes

Contents

if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('1.9.2')
  unless Kernel.method_defined?(:singleton_class)
    module Kernel
      def singleton_class
        class << self; self; end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mocha-1.14.0 lib/mocha/singleton_class.rb
mocha-1.13.0 lib/mocha/singleton_class.rb
mocha-1.12.0 lib/mocha/singleton_class.rb
mocha-1.11.2 lib/mocha/singleton_class.rb
mocha-1.11.1 lib/mocha/singleton_class.rb
mocha-1.11.0 lib/mocha/singleton_class.rb
mocha-1.10.2 lib/mocha/singleton_class.rb
mocha-1.10.1 lib/mocha/singleton_class.rb
mocha-1.10.0 lib/mocha/singleton_class.rb
mocha-1.10.0.beta.1 lib/mocha/singleton_class.rb
mocha-1.10.0.alpha lib/mocha/singleton_class.rb