Class: Crystal::Processor

Inherits:
Object show all
Defined in:
lib/crystal/conveyor/processor.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(next_processor) ⇒ Processor

Returns a new instance of Processor.



11
12
13
# File 'lib/crystal/conveyor/processor.rb', line 11

def initialize next_processor
  @next_processor = next_processor
end

Instance Attribute Details

#next_processorObject

Returns the value of attribute next_processor.



9
10
11
# File 'lib/crystal/conveyor/processor.rb', line 9

def next_processor
  @next_processor
end

Class Method Details

.inspectObject



15
16
17
# File 'lib/crystal/conveyor/processor.rb', line 15

def self.inspect
  self.name.split('::').last
end