Class: Fig::Package::Archive

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Statement

#walk_statements

Constructor Details

#initialize(url) ⇒ Archive

Returns a new instance of Archive.



13
14
15
# File 'lib/fig/package/archive.rb', line 13

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end

Instance Method Details

#unparse(indent) ⇒ Object



21
22
23
# File 'lib/fig/package/archive.rb', line 21

def unparse(indent)
  %Q<#{indent}archive "#{url}">
end

#urlsObject



17
18
19
# File 'lib/fig/package/archive.rb', line 17

def urls
  return [@url]
end