module Kernel
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
Public Instance Methods
class_eval(*args, &block)
click to toggle source
class_eval
on an object acts like singleton_class.class_eval.
# File lib/active_row/class_attribute.rb, line 8 def class_eval(*args, &block) singleton_class.class_eval(*args, &block) end