Class: Expedite::Action::Block
- Inherits:
-
Object
- Object
- Expedite::Action::Block
- Defined in:
- lib/expedite/action/block.rb
Instance Attribute Summary collapse
-
#runs_in ⇒ Object
readonly
Returns the value of attribute runs_in.
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(runs_in: :application, &block) ⇒ Block
constructor
A new instance of Block.
-
#setup(_) ⇒ Object
Ignoring all streams.
Constructor Details
#initialize(runs_in: :application, &block) ⇒ Block
Returns a new instance of Block.
7 8 9 10 |
# File 'lib/expedite/action/block.rb', line 7 def initialize(runs_in: :application, &block) @runs_in = runs_in @block = block end |
Instance Attribute Details
#runs_in ⇒ Object (readonly)
Returns the value of attribute runs_in.
5 6 7 |
# File 'lib/expedite/action/block.rb', line 5 def runs_in @runs_in end |
Instance Method Details
#call(*args) ⇒ Object
12 13 14 |
# File 'lib/expedite/action/block.rb', line 12 def call(*args) @block.call(*args) end |
#setup(_) ⇒ Object
Ignoring all streams
17 18 |
# File 'lib/expedite/action/block.rb', line 17 def setup(_) end |