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
sprockets_helpers_settings()
click to toggle source
# File lib/sprockets/helpers/base_path.rb, line 20 def sprockets_helpers_settings @options[:sprockets_helpers_settings] end
to_s()
click to toggle source
Returns the full path to the asset, complete with timestamp.
# File lib/sprockets/helpers/base_path.rb, line 26 def to_s rewrite_path rewrite_query rewrite_host uri.to_s end