aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/kernel/concern.rb
blob: 0b2baed78073ab0de0d266b3c6889b1d547e2356 (plain) (tree)
1
2
3
4
5
6
7
8
9
                             
 
                                                   

             

                 

                                                                 
                                    



                                            
# frozen_string_literal: true

require "active_support/core_ext/module/concerning"

module Kernel
  module_function

  # A shortcut to define a toplevel concern, not within a module.
  #
  # See Module::Concerning for more.
  def concern(topic, &module_definition)
    Object.concern topic, &module_definition
  end
end