Sha256: 841a83b005b559e60c9d4fccea74a868e3d398f2a37edf3ac1ea0fc04edf8465

Contents?: true

Size: 439 Bytes

Versions: 3

Compression:

Stored size: 439 Bytes

Contents

require 'fig/statement'

module Fig; 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
  attr_reader :url

  def initialize(line_column, url)
    super(line_column)

    @url = url
  end

  def urls
    return [@url]
  end

  def unparse(indent)
    "#{indent}resource #{url}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fig-0.1.62 lib/fig/statement/resource.rb
fig-0.1.61 lib/fig/statement/resource.rb
fig-0.1.59 lib/fig/statement/resource.rb