instance method
class_eval
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
class_eval(*args, &block)
If class_eval is called on an object, add those methods to its metaclass
Parameters
-
argsrest -
blockblock
Source
# File activesupport/lib/active_support/core_ext/object/metaclass.rb, line 10
def class_eval(*args, &block)
metaclass.class_eval(*args, &block)
end
Defined in activesupport/lib/active_support/core_ext/object/metaclass.rb line 10
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Object