Sha256: aac6938dccbfc7031b6c99f5e6d95a27ffac17a01e402bb88ffaa68282ac530f

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

module Rad  
  class Processor
    inject(
      config: :config,
      workspace: :workspace,
      logger: :logger
    )
    
    attr_accessor :next_processor
    
    def initialize next_processor
      @next_processor = next_processor
    end      
    
    def self.inspect
      self.name.split('::').last
    end    
  end
end
#       
#     # def call            
#     #   if workspace.error?
#     #     respond_to :on_error
#     #   else
#     #     begin
#     #       trace self.inspect do
#     #         respond_to :process
#     #       end
#     #     rescue Exception => e
#     #       workspace.error = e
#     #       respond_to :on_error          
#     #     end
#     #   end
#     # end
#     
#     
#     
#     # 
#     # Unwrapping Call Stack
#     # 
#     def result_error= error
#       @result_error = error
#     end
#     
#     def result!
#       @result_called.must_be.false
#       @result_called = true
#       raise @result_error if @result_error      
#     end
#     
#     def result_called?      
#       @result_called
#     end
#     attr_writer :result_called
# 
#     attr_accessor :after_block
#     def after &block
#       # @after_called.must_be.false
#       @after_block = block.must_be.defined
#       # @after_called = true
#     end
#     
#     # def after_called?
#     #   @after_called
#     # end
#     
#   end
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_core-0.0.13 lib/rad/conveyor/processor.rb