Class: Otaku::Handler::Processor
- Inherits:
-
Object
- Object
- Otaku::Handler::Processor
- Extended by:
- Forwardable
- Defined in:
- lib/otaku/handler/processor.rb
Overview
:nodoc:
Defined Under Namespace
Classes: MagicProc
Instance Method Summary collapse
-
#initialize(block) ⇒ Processor
constructor
A new instance of Processor.
- #marshal_dump ⇒ Object
- #marshal_load(data) ⇒ Object
Constructor Details
#initialize(block) ⇒ Processor
Returns a new instance of Processor.
10 11 12 |
# File 'lib/otaku/handler/processor.rb', line 10 def initialize(block) @magic_proc = MagicProc.new(block) end |
Instance Method Details
#marshal_dump ⇒ Object
14 15 16 |
# File 'lib/otaku/handler/processor.rb', line 14 def marshal_dump [@magic_proc] end |
#marshal_load(data) ⇒ Object
18 19 20 |
# File 'lib/otaku/handler/processor.rb', line 18 def marshal_load(data) @magic_proc, _ = data end |