Class: DaimonSkycrawlers::Processor::Proc
- Defined in:
- lib/daimon_skycrawlers/processor/proc.rb
Instance Method Summary collapse
- #call(message) ⇒ Object
-
#initialize(handler) ⇒ Proc
constructor
A new instance of Proc.
Methods inherited from Base
Methods included from Configurable
Methods included from Callbacks
#before_process, #clear_before_process_callbacks, #run_before_callbacks
Methods included from LoggerMixin
Constructor Details
#initialize(handler) ⇒ Proc
Returns a new instance of Proc.
6 7 8 9 |
# File 'lib/daimon_skycrawlers/processor/proc.rb', line 6 def initialize(handler) super() @handler = handler end |
Instance Method Details
#call(message) ⇒ Object
11 12 13 |
# File 'lib/daimon_skycrawlers/processor/proc.rb', line 11 def call() @handler.call() end |