instance method
concern
Ruby on Rails 8.0.4
Since v4.2.9Signature
concern(topic, &module_definition)
A shortcut to define a toplevel concern, not within a module.
See Module::Concerning for more.
Parameters
-
topicreq -
module_definitionblock
Source
# File activesupport/lib/active_support/core_ext/kernel/concern.rb, line 11
def concern(topic, &module_definition)
Object.concern topic, &module_definition
end
Defined in activesupport/lib/active_support/core_ext/kernel/concern.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Kernel