class Sprockets::Helpers::BasePath

Attributes

options[R]

The various options used when generating the path.

uri[R]

The parsed URI from which to generate the full path to the asset.

Public Class Methods

new(uri, options = {}) click to toggle source
# File lib/sprockets/helpers/base_path.rb, line 15
def initialize(uri, options = {})
  @uri = uri
  @options = options
end

Public Instance Methods

to_s() click to toggle source

Returns the full path to the asset, complete with timestamp.

# File lib/sprockets/helpers/base_path.rb, line 22
def to_s
  rewrite_path
  rewrite_query
  rewrite_host

  uri.to_s
end