Class: Fig::Statement::Archive
- Inherits:
-
Fig::Statement
- Object
- Fig::Statement
- Fig::Statement::Archive
- Includes:
- Asset
- Defined in:
- lib/fig/statement/archive.rb
Overview
Specifies an archive file (possibly via a URL) that is part of a package.
Differs from a Resource in that the contents will be extracted.
Constant Summary
Constants inherited from Fig::Statement
ENVIRONMENT_VARIABLE_NAME_REGEX
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from Fig::Statement
#column, #line, #source_description
Instance Method Summary collapse
- #asset_name ⇒ Object
-
#initialize(line_column, source_description, url, glob_if_not_url) ⇒ Archive
constructor
A new instance of Archive.
- #unparse_as_version(unparser) ⇒ Object
Methods included from Asset
#glob_if_not_url?, included, #is_asset?, #minimum_grammar_version_required, #requires_globbing?, #standard_asset_name, #urls
Methods inherited from Fig::Statement
#is_asset?, #is_environment_variable?, #minimum_grammar_version_required, position_description, #position_string, strip_quotes_and_process_escapes!, #urls, #walk_statements
Constructor Details
#initialize(line_column, source_description, url, glob_if_not_url) ⇒ Archive
Returns a new instance of Archive.
15 16 17 18 19 20 |
# File 'lib/fig/statement/archive.rb', line 15 def initialize(line_column, source_description, url, glob_if_not_url) super(line_column, source_description) @url = url @glob_if_not_url = glob_if_not_url end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
13 14 15 |
# File 'lib/fig/statement/archive.rb', line 13 def url @url end |
Instance Method Details
#asset_name ⇒ Object
22 23 24 |
# File 'lib/fig/statement/archive.rb', line 22 def asset_name() return standard_asset_name() end |
#unparse_as_version(unparser) ⇒ Object
26 27 28 |
# File 'lib/fig/statement/archive.rb', line 26 def unparse_as_version(unparser) return unparser.archive(self) end |