Module: Lolita::Hooks::InstanceMethods
- Defined in:
- lib/lolita/hooks.rb
Overview
Methods for instance.
Instance Method Summary collapse
-
#fire(*hook_names) ⇒ Object
See Lolita::Hooks::ClassMethods#fire.
-
#let_content ⇒ Object
See Lolita::Hooks::ClassMethods#let_content.
-
#method_missing(*args, &block) ⇒ Object
See Lolita::Hooks::ClassMethods#method_missing.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
See Lolita::Hooks::ClassMethods#method_missing
290 291 292 293 294 |
# File 'lib/lolita/hooks.rb', line 290 def method_missing(*args,&block) unless self.class.recognize_hook_methods(*args,&block) super end end |
Instance Method Details
#fire(*hook_names) ⇒ Object
See Lolita::Hooks::ClassMethods#fire
280 281 282 |
# File 'lib/lolita/hooks.rb', line 280 def fire(*hook_names) self.class.fire(*hook_names,:scope=>self) end |
#let_content ⇒ Object
See Lolita::Hooks::ClassMethods#let_content
285 286 287 |
# File 'lib/lolita/hooks.rb', line 285 def let_content self.class.let_content end |