Module: Anchor::Hooks::DSL::Keywords
- Included in:
- ClassMethods
- Defined in:
- lib/anchor/hooks.rb
Instance Method Summary collapse
Instance Method Details
#instance(*methods) ⇒ Object
17 |
# File 'lib/anchor/hooks.rb', line 17 def instance *methods; [{instance: methods.shift}, *methods]; end |
#singleton(*methods) ⇒ Object
16 |
# File 'lib/anchor/hooks.rb', line 16 def singleton *methods; [{singleton: methods.shift}, *methods]; end |