Class: Plines::ExternalDependencyList

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/plines/step.rb

Overview

Keeps track of a list of external dependencies. These are yielded as the first argument to ‘has_external_dependencies`.

Instance Method Summary collapse

Constructor Details

#initializeExternalDependencyList

Returns a new instance of ExternalDependencyList.



13
14
15
# File 'lib/plines/step.rb', line 13

def initialize
  @dependencies = []
end

Instance Method Details

#add(name, options = {}) ⇒ Object



17
18
19
# File 'lib/plines/step.rb', line 17

def add(name, options = {})
  @dependencies << ExternalDependency.new(name, options)
end

#to_aObject



21
22
23
# File 'lib/plines/step.rb', line 21

def to_a
  @dependencies.dup
end