Class: DaimonSkycrawlers::Processor::Proc
- Defined in:
- lib/daimon_skycrawlers/processor/proc.rb
Overview
Processor for Proc
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#call(message) ⇒ Object
Process message.
-
#initialize(handler) ⇒ Proc
constructor
A new instance of Proc.
Methods inherited from Base
Methods included from Configurable
Methods included from Callbacks
#after_process, #before_process, #clear_after_process_callbacks, #clear_before_process_callbacks, #run_after_process_callbacks, #run_before_process_callbacks
Constructor Details
#initialize(handler) ⇒ Proc
Returns a new instance of Proc.
9 10 11 12 |
# File 'lib/daimon_skycrawlers/processor/proc.rb', line 9 def initialize(handler) super() @handler = handler end |
Instance Method Details
#call(message) ⇒ Object
Process message
17 18 19 |
# File 'lib/daimon_skycrawlers/processor/proc.rb', line 17 def call() @handler.call() end |