Sha256: 2a3adfeba29200b1ec76c23c48c55c346c5d527e784880219c5d4fc818b6843a

Contents?: true

Size: 812 Bytes

Versions: 10

Compression:

Stored size: 812 Bytes

Contents

# frozen_string_literal: true

require 'attr/gather/concerns/identifiable'
require 'attr/gather/workflow/task'
require 'attr/gather/workflow/task_graph'
require 'attr/gather/workflow/dsl'
require 'attr/gather/workflow/callable'
require 'attr/gather/workflow/graphable'

module Attr
  module Gather
    # Main mixin for functionality. Adds the ability to turn a class into a
    # workflow.
    module Workflow
      # @!parse extend DSL
      # @!parse include Callable
      # @!parse extend Graphable::ClassMethods
      # @!parse include Graphable::InstanceMethods
      # @!parse include Concerns::Identifiable

      def self.included(klass)
        klass.extend(DSL)
        klass.include(Callable)
        klass.include(Graphable)
        klass.include(Concerns::Identifiable)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
attr-gather-1.5.1 lib/attr/gather/workflow.rb
attr-gather-1.4.0 lib/attr/gather/workflow.rb
attr-gather-1.2.1 lib/attr/gather/workflow.rb
attr-gather-1.3.0 lib/attr/gather/workflow.rb
attr-gather-1.2.0 lib/attr/gather/workflow.rb
attr-gather-1.1.3 lib/attr/gather/workflow.rb
attr-gather-1.1.2 lib/attr/gather/workflow.rb
attr-gather-1.1.1 lib/attr/gather/workflow.rb
attr-gather-1.1.0 lib/attr/gather/workflow.rb
attr-gather-1.0.0 lib/attr/gather/workflow.rb