Module: Compound::GuardAgainst

Extended by:
BaseGuardMethods
Defined in:
lib/compound/guard.rb

Class Method Summary collapse

Methods included from BaseGuardMethods

included, warn_about

Class Method Details

.guard(mod) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



38
39
40
41
42
# File 'lib/compound/guard.rb', line 38

def self.guard mod
  mod.define_singleton_method :compounded do |_|
    ::Compound::GuardAgainst.warn_about self
  end
end