Class: ClassyAssets::Sprockets

Inherits:
Object
  • Object
show all
Defined in:
lib/classy_assets/sprockets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSprockets

Returns a new instance of Sprockets.



7
8
9
10
11
# File 'lib/classy_assets/sprockets.rb', line 7

def initialize
  @config = ClassyAssets.config
  @asset_root = @config.asset_root
  @environment = new_sprockets_environment
end

Instance Attribute Details

#asset_rootObject

Returns the value of attribute asset_root.



6
7
8
# File 'lib/classy_assets/sprockets.rb', line 6

def asset_root
  @asset_root
end

#environmentObject

Returns the value of attribute environment.



6
7
8
# File 'lib/classy_assets/sprockets.rb', line 6

def environment
  @environment
end