Sha256: 0888163be3e4ff2243998a555f9fe22287e78a75e5dc5cf88e8469e8e30afb15

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

module Fig; end
class Fig::Statement; end

# Some sort of file to be included in a package.
module Fig::Statement::Asset
  def urls()
    return [ url() ]
  end

  def is_asset?()
    return true
  end

  def standard_asset_name()
    # Not so hot of an idea if the URL has query parameters in it, but not
    # going to fix this now.
    return url().split('/').last()
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fig-0.1.69 lib/fig/statement/asset.rb
fig-0.1.67 lib/fig/statement/asset.rb
fig-0.1.65 lib/fig/statement/asset.rb
fig-0.1.64 lib/fig/statement/asset.rb