Class: Fig::Package::Retrieve

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

Overview

Specifies the destination to put a dependency into.

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.



14
15
16
17
# File 'lib/fig/package/retrieve.rb', line 14

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#varObject (readonly)

Returns the value of attribute var.



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

def var
  @var
end

Instance Method Details

#unparse(indent) ⇒ Object



19
20
21
# File 'lib/fig/package/retrieve.rb', line 19

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