Class: Fig::Package::Retrieve
- Inherits:
-
Object
- Object
- Fig::Package::Retrieve
- Includes:
- Statement
- Defined in:
- lib/fig/package/retrieve.rb
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.
13 14 15 16 |
# File 'lib/fig/package/retrieve.rb', line 13 def initialize(var, path) @var = var @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
11 12 13 |
# File 'lib/fig/package/retrieve.rb', line 11 def path @path end |
#var ⇒ Object (readonly)
Returns the value of attribute var.
11 12 13 |
# File 'lib/fig/package/retrieve.rb', line 11 def var @var end |
Instance Method Details
#unparse(indent) ⇒ Object
18 19 20 |
# File 'lib/fig/package/retrieve.rb', line 18 def unparse(indent) "#{indent}retrieve #{var}->#{path}" end |