Class: Interrotron::Macro
- Inherits:
-
Object
- Object
- Interrotron::Macro
- Defined in:
- lib/interrotron.rb
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(&block) ⇒ Macro
constructor
A new instance of Macro.
Constructor Details
#initialize(&block) ⇒ Macro
Returns a new instance of Macro.
30 31 32 |
# File 'lib/interrotron.rb', line 30 def initialize(&block) @block = block end |
Instance Method Details
#call(*args) ⇒ Object
33 34 35 |
# File 'lib/interrotron.rb', line 33 def call(*args) @block.call(*args) end |