Class: Plines::ExternalDependencyList
- Inherits:
-
Object
- Object
- Plines::ExternalDependencyList
- 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
- #add(name, options = {}) ⇒ Object
-
#initialize ⇒ ExternalDependencyList
constructor
A new instance of ExternalDependencyList.
- #to_a ⇒ Object
Constructor Details
#initialize ⇒ ExternalDependencyList
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, = {}) @dependencies << ExternalDependency.new(name, ) end |
#to_a ⇒ Object
21 22 23 |
# File 'lib/plines/step.rb', line 21 def to_a @dependencies.dup end |