Class: Fig::Retrieve

Inherits:
Object
  • Object
show all
Defined in:
lib/fig/package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(var, path) ⇒ Retrieve

Returns a new instance of Retrieve.



73
74
75
76
# File 'lib/fig/package.rb', line 73

def initialize(var, path)
  @var = var
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



71
72
73
# File 'lib/fig/package.rb', line 71

def path
  @path
end

#varObject (readonly)

Returns the value of attribute var.



71
72
73
# File 'lib/fig/package.rb', line 71

def var
  @var
end

Instance Method Details

#unparse(indent) ⇒ Object



78
79
80
# File 'lib/fig/package.rb', line 78

def unparse(indent)
  "#{indent}retrieve #{var}->#{path}"
end