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
Attributes included from Asset
Attributes inherited from Fig::Statement
#column, #line, #source_description
Instance Method Summary collapse
- #asset_name ⇒ Object
- #deparse_as_version(deparser) ⇒ Object
-
#initialize(line_column, source_description, location, glob_if_not_url) ⇒ Archive
constructor
A new instance of Archive.
- #statement_type ⇒ Object
Methods included from Asset
#glob_if_not_url?, included, #is_asset?, #minimum_grammar_for_emitting_input, #minimum_grammar_for_publishing, #requires_globbing?, #standard_asset_name, #urls
Methods inherited from Fig::Statement
#is_asset?, #is_environment_variable?, #minimum_grammar_for_emitting_input, #minimum_grammar_for_publishing, position_description, #position_string, #urls, #walk_statements
Constructor Details
#initialize(line_column, source_description, location, 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, location, glob_if_not_url) super(line_column, source_description) @location = location @glob_if_not_url = glob_if_not_url end |
Instance Method Details
#asset_name ⇒ Object
26 27 28 |
# File 'lib/fig/statement/archive.rb', line 26 def asset_name() return standard_asset_name() end |
#deparse_as_version(deparser) ⇒ Object
30 31 32 |
# File 'lib/fig/statement/archive.rb', line 30 def deparse_as_version(deparser) return deparser.archive(self) end |
#statement_type ⇒ Object
22 23 24 |
# File 'lib/fig/statement/archive.rb', line 22 def statement_type() return 'archive' end |