Class: Fig::Retrieve
- Inherits:
-
Object
- Object
- Fig::Retrieve
- Defined in:
- lib/fig/package.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
Constructor Details
#initialize(var, path) ⇒ Retrieve
Returns a new instance of Retrieve.
75 76 77 78 |
# File 'lib/fig/package.rb', line 75 def initialize(var, path) @var = var @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
73 74 75 |
# File 'lib/fig/package.rb', line 73 def path @path end |
#var ⇒ Object (readonly)
Returns the value of attribute var.
73 74 75 |
# File 'lib/fig/package.rb', line 73 def var @var end |
Instance Method Details
#unparse(indent) ⇒ Object
80 81 82 |
# File 'lib/fig/package.rb', line 80 def unparse(indent) "#{indent}retrieve #{var}->#{path}" end |