Sha256: db90aeaa91593abc3c57e650e8bd1c3dace3a69d3e7de268d2583b5a7b5ebacc

Contents?: true

Size: 678 Bytes

Versions: 7

Compression:

Stored size: 678 Bytes

Contents

# frozen_string_literal: true

module Nocode
  # Defines a running step.  Steps should be sub-classes of this class as well as to implement
  # #perform.
  class Step
    extend Forwardable
    include Util::Arrayable
    include Util::Optionable

    attr_reader :context,
                :name,
                :options,
                :type

    def_delegators :context,
                   :io,
                   :parameters,
                   :registers

    def initialize(
      context: Context.new,
      name: '',
      options: {},
      type: ''
    )
      @context = context
      @options = options
      @name    = name
      @type    = type
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nocode-0.0.10 lib/nocode/step.rb
nocode-0.0.9 lib/nocode/step.rb
nocode-0.0.8 lib/nocode/step.rb
nocode-0.0.7 lib/nocode/step.rb
nocode-0.0.6 lib/nocode/step.rb
nocode-0.0.5 lib/nocode/step.rb
nocode-0.0.4 lib/nocode/step.rb