Sha256: 5dc068143c3488f6073061fb9ab9e1eb323553165e2da89a83073e720a271068

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

require_relative '../models/composition'

module Vedeu
  class Compositor
    def self.enqueue(attributes)
      new(attributes).enqueue
    end

    def initialize(attributes)
      @attributes = attributes
    end

    def enqueue
      composition.interfaces.map { |interface| interface.enqueue }
    end

    private

    attr_reader :attributes

    def composition
      @composition ||= Composition.new(attributes)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.0.39 lib/vedeu/support/compositor.rb
vedeu-0.0.38 lib/vedeu/support/compositor.rb
vedeu-0.0.37 lib/vedeu/support/compositor.rb
vedeu-0.0.36 lib/vedeu/support/compositor.rb
vedeu-0.0.35 lib/vedeu/support/compositor.rb
vedeu-0.0.34 lib/vedeu/support/compositor.rb