method

class_methods

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActiveSupport::Concern
class_methods(&class_methods_module_definition) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/concern.rb, line 134
    def class_methods(&class_methods_module_definition)
      mod = const_defined?(:ClassMethods, false) ?
        const_get(:ClassMethods) :
        const_set(:ClassMethods, Module.new)

      mod.module_eval(&class_methods_module_definition)
    end
Register or log in to add new notes.