Method: Kernel.concern

Defined in:
activesupport/lib/active_support/core_ext/kernel/concern.rb

.concern(topic, &module_definition) ⇒ Object

A shortcut to define a toplevel concern, not within a module.

See Module::Concerning for more.



11
12
13
# File 'activesupport/lib/active_support/core_ext/kernel/concern.rb', line 11

def concern(topic, &module_definition)
  Object.concern topic, &module_definition
end