Module: Compound::BaseGuardMethods Private

Included in:
Guard, GuardAgainst
Defined in:
lib/compound/guard.rb

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

Instance Method Summary collapse

Instance Method Details

#included(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.



13
14
15
# File 'lib/compound/guard.rb', line 13

def included mod
  guard mod
end

#warn_about(obj) ⇒ 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.



6
7
8
9
10
11
# File 'lib/compound/guard.rb', line 6

def warn_about obj
  warn "WARNING\n"\
       "#{obj} is intended only for use in a Compound::Part.\n"\
       "Please use Compound::Host#compound instead of #extend or #include.\n"\
       "\n"
end