Class: Chirp::NowProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/chirp/application.rb

Instance Method Summary collapse

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

#executeObject



121
122
123
# File 'lib/chirp/application.rb', line 121

def execute
  @context.execute(@block)
end