Module: Actor::HandleMacro
- Defined in:
- lib/actor/handle_macro.rb
Defined Under Namespace
Modules: MethodName
Instance Method Summary collapse
- #handle_macro(pattern, &action) ⇒ Object (also: #handle)
Instance Method Details
#handle_macro(pattern, &action) ⇒ Object Also known as: handle
3 4 5 6 7 |
# File 'lib/actor/handle_macro.rb', line 3 def handle_macro pattern, &action method_name = MethodName.get pattern define_method method_name, &action end |