Class: Locomotive::Steam::SprocketsEnvironment

Inherits:
Sprockets::Environment
  • Object
show all
Defined in:
lib/locomotive/steam/initializers/sprockets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root, options = {}) ⇒ SprocketsEnvironment



72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/locomotive/steam/initializers/sprockets.rb', line 72

def initialize(root, options = {})
  super(root)

  @steam_path = root

  append_steam_paths

  install_yui_compressor(options)

  install_autoprefixer

  context_class.class_eval do
    def asset_path(path, options = {})
      path
    end
  end
end

Instance Attribute Details

#steam_pathObject (readonly)

Returns the value of attribute steam_path.



70
71
72
# File 'lib/locomotive/steam/initializers/sprockets.rb', line 70

def steam_path
  @steam_path
end