Module: Compound::GuardAgainst
- Extended by:
- BaseGuardMethods
- Defined in:
- lib/compound/guard.rb
Class Method Summary collapse
- .guard(mod) ⇒ Object private
Methods included from BaseGuardMethods
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 |