Class: Fig::Package::Retrieve
- Inherits:
-
Object
- Object
- Fig::Package::Retrieve
- Includes:
- Statement
- Defined in:
- lib/fig/package/retrieve.rb
Overview
Specifies the destination to put a dependency into.
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#var ⇒ Object
readonly
Returns the value of attribute var.
Instance Method Summary collapse
-
#initialize(var, path) ⇒ Retrieve
constructor
A new instance of Retrieve.
- #unparse(indent) ⇒ Object
Methods included from Statement
Constructor Details
#initialize(var, path) ⇒ Retrieve
Returns a new instance of Retrieve.
14 15 16 17 |
# File 'lib/fig/package/retrieve.rb', line 14 def initialize(var, path) @var = var @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
12 13 14 |
# File 'lib/fig/package/retrieve.rb', line 12 def path @path end |
#var ⇒ Object (readonly)
Returns the value of attribute var.
12 13 14 |
# File 'lib/fig/package/retrieve.rb', line 12 def var @var end |
Instance Method Details
#unparse(indent) ⇒ Object
19 20 21 |
# File 'lib/fig/package/retrieve.rb', line 19 def unparse(indent) "#{indent}retrieve #{var}->#{path}" end |