Sha256: 18f56cf6d5a83e223428430a9438bb52bc11b682e6004944a214f888813b1c37

Contents?: true

Size: 201 Bytes

Versions: 70

Compression:

Stored size: 201 Bytes

Contents

# frozen_string_literal: true

module Kernel
  # class_eval on an object acts like +singleton_class.class_eval+.
  def class_eval(*args, &block)
    singleton_class.class_eval(*args, &block)
  end
end

Version data entries

70 entries across 68 versions & 11 rubygems

Version Path
activesupport-8.0.0 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.2.2 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.1.5 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-8.0.0.rc2 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.2.1.2 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.1.4.2 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.0.8.6 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-8.0.0.rc1 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.2.1.1 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.1.4.1 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.0.8.5 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-8.0.0.beta1 lib/active_support/core_ext/kernel/singleton_class.rb
omg-activesupport-8.0.0.alpha9 lib/active_support/core_ext/kernel/singleton_class.rb
omg-activesupport-8.0.0.alpha8 lib/active_support/core_ext/kernel/singleton_class.rb
omg-activesupport-8.0.0.alpha7 lib/active_support/core_ext/kernel/singleton_class.rb
omg-activesupport-8.0.0.alpha4 lib/active_support/core_ext/kernel/singleton_class.rb
omg-activesupport-8.0.0.alpha3 lib/active_support/core_ext/kernel/singleton_class.rb
omg-activesupport-8.0.0.alpha2 lib/active_support/core_ext/kernel/singleton_class.rb
omg-activesupport-8.0.0.alpha1 lib/active_support/core_ext/kernel/singleton_class.rb
activesupport-7.1.4 lib/active_support/core_ext/kernel/singleton_class.rb