Sha256: 261350f2a039d82a30fc4d5c02c89d08f1fb6e9aa4d855b245c6cd529f20c5e5

Contents?: true

Size: 255 Bytes

Versions: 6

Compression:

Stored size: 255 Bytes

Contents

require 'core_ext/module/concerning'

module Kernel
  # 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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
core_ext-0.0.6 lib/core_ext/kernel/concern.rb
core_ext-0.0.5 lib/core_ext/kernel/concern.rb
core_ext-0.0.4 lib/core_ext/kernel/concern.rb
core_ext-0.0.3 lib/core_ext/kernel/concern.rb
core_ext-0.0.2 lib/core_ext/kernel/concern.rb
core_ext-0.0.1 lib/core_ext/kernel/concern.rb