Class: Otaku::Handler::Processor

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/otaku/handler/processor.rb

Overview

:nodoc:

Defined Under Namespace

Classes: MagicProc

Instance Method Summary collapse

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_dumpObject



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