class Traject::Indexer::AfterProcessingStep
A class representing a block of logic called after processing, registered with after_processing
Attributes
block[RW]
lambda[RW]
source_location[RW]
Public Class Methods
new(lambda, block, source_location)
click to toggle source
# File lib/traject/indexer/step.rb, line 170 def initialize(lambda, block, source_location) self.lambda = lambda self.block = block self.source_location = source_location end
Public Instance Methods
execute()
click to toggle source
after_processing steps get no args yielded to their blocks, they just are what they are.
# File lib/traject/indexer/step.rb, line 183 def execute @block.call if @block @lambda.call if @lambda end
inspect()
click to toggle source
# File lib/traject/indexer/step.rb, line 188 def inspect "(after_processing at #{self.source_location}" end
to_field_step?()
click to toggle source
# File lib/traject/indexer/step.rb, line 177 def to_field_step? false end