Class: Chirp::NowProcessor
- Inherits:
-
Object
- Object
- Chirp::NowProcessor
- Defined in:
- lib/chirp/application.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(context, &block) ⇒ NowProcessor
constructor
A new instance of NowProcessor.
Constructor Details
#initialize(context, &block) ⇒ NowProcessor
Returns a new instance of NowProcessor.
116 117 118 119 |
# File 'lib/chirp/application.rb', line 116 def initialize(context, &block) @context = context @block = block end |
Instance Method Details
#execute ⇒ Object
121 122 123 |
# File 'lib/chirp/application.rb', line 121 def execute @context.execute(@block) end |