Sha256: 0f7802f2f3c50c7f09f411d6fc59f4d354faf625622387fab8d7f4e3b51a0451

Contents?: true

Size: 770 Bytes

Versions: 5

Compression:

Stored size: 770 Bytes

Contents

# frozen_string_literal: true

require_relative "../helpers/parameter_finder_with_method_missing_mixin"
require_relative "../helpers/parameter_bag_with_registrator"

module Kanal
  module Core
    module Output
      # Base class for constructing output that will be given
      # from router node
      class Output
        include Helpers
        include Helpers::ParameterFinderWithMethodMissingMixin

        attr_reader :input, :core

        def initialize(parameter_registrator, input, core)
          @input = input
          @core = core
          @parameter_bag = ParameterBagWithRegistrator.new parameter_registrator
        end

        def configure_dsl(&block)
          instance_eval(&block)
        end

        private :core
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kanal-0.4.3 lib/kanal/core/output/output.rb
kanal-0.4.2 lib/kanal/core/output/output.rb
kanal-0.4.1 lib/kanal/core/output/output.rb
kanal-0.4.0 lib/kanal/core/output/output.rb
kanal-0.3.0 lib/kanal/core/output/output.rb