Sha256: 1546540d59d149e5a80ffbe79964007a872d2483ad83c3df010f95ae9b79bd1c

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

unless defined?(Rails) || defined?(ActiveSupport)
  # See {Class}
  # @api private
  module Kernel
    # @api private
    def class_eval(*args, &block)
      singleton_class.class_eval(*args, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stub_requests-0.1.3 lib/stub_requests/core_ext/kernel/singleton_class.rb
stub_requests-0.1.2 lib/stub_requests/core_ext/kernel/singleton_class.rb