Sha256: 837ace8ed27de9bad0f77cb9853bc0244b2fc138f4c0389cea969839695e88e3

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

require 'vedeu/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

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.0.41 lib/vedeu/parsing/compositor.rb
vedeu-0.0.40 lib/vedeu/parsing/compositor.rb