Class: Fig::Package::Retrieve

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Statement

#urls, #walk_statements

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

#pathObject (readonly)

Returns the value of attribute path.



11
12
13
# File 'lib/fig/package/retrieve.rb', line 11

def path
  @path
end

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