Sha256: 6f8d36b3410238ad7a7c7be0a4c50c5d0e07cf552b34be8c482b595e7e9b603d
Contents?: true
Size: 907 Bytes
Versions: 26
Compression:
Stored size: 907 Bytes
Contents
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
26 entries across 26 versions & 1 rubygems