Module: Kernel
- Defined in:
- lib/active_row/class_attribute.rb
Overview
This file contains the source of the Class#class_attribute method from ActiveSupport. It also contains the dependencies of this method, which are defined in ActiveSupport. Reference: api.rubyonrails.org/classes/Class.html#method-i-class_attribute Source: github.com/rails/rails/blob/v4.2.5/activesupport/lib/active_support/core_ext/class/attribute.rb
Instance Method Summary collapse
-
#class_eval(*args, &block) ⇒ Object
class_eval on an object acts like singleton_class.class_eval.
Instance Method Details
#class_eval(*args, &block) ⇒ Object
class_eval on an object acts like singleton_class.class_eval.
8 9 10 |
# File 'lib/active_row/class_attribute.rb', line 8 def class_eval(*args, &block) singleton_class.class_eval(*args, &block) end |