Module: Rubee::Hookable::InstanceMethods
- Defined in:
- lib/rubee/extensions/hookable.rb
Instance Method Summary collapse
- #conditions_met?(if_condition = nil, unless_condition = nil) ⇒ Boolean
- #safe_call(handler, call_args = [], &block) ⇒ Object
- #safe_lambda(strict_lambda) ⇒ Object
Instance Method Details
#conditions_met?(if_condition = nil, unless_condition = nil) ⇒ Boolean
128 129 130 |
# File 'lib/rubee/extensions/hookable.rb', line 128 def conditions_met?(if_condition = nil, unless_condition = nil) self.class.conditions_met?(if_condition, unless_condition, self) end |
#safe_call(handler, call_args = [], &block) ⇒ Object
136 137 138 |
# File 'lib/rubee/extensions/hookable.rb', line 136 def safe_call(handler, call_args = [], &block) self.class.safe_call(handler, call_args, &block) end |
#safe_lambda(strict_lambda) ⇒ Object
132 133 134 |
# File 'lib/rubee/extensions/hookable.rb', line 132 def safe_lambda(strict_lambda) self.class.safe_lambda(strict_lambda) end |