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.



75
76
77
78
# File 'lib/fig/package.rb', line 75

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#varObject (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