Sha256: 86aa03e1e745debfb7ef0d5f23b4659a98da9a46e44912490654fec87a0c6b83
Contents?: true
Size: 924 Bytes
Versions: 15
Compression:
Stored size: 924 Bytes
Contents
# coding: utf-8 require 'fig/statement' require 'fig/statement/asset' require 'fig/url' module Fig; end class Fig::Statement; end # Specifies a file (possibly via a URL) that is part of the current package. # # Differs from an Archive in that the contents will not be extracted. class Fig::Statement::Resource < Fig::Statement include Fig::Statement::Asset 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 def statement_type() return 'resource' end def asset_name() if Fig::URL.is_url?(location()) return standard_asset_name() end # This resource will end up being bundled with others and will not live in # the package by itself. return nil end def deparse_as_version(deparser) return deparser.resource(self) end end
Version data entries
15 entries across 15 versions & 1 rubygems