Class: ViewAssets::Manager::JsModifier

Inherits:
Modifier
  • Object
show all
Defined in:
lib/view_assets/manager/modifier.rb

Constant Summary collapse

DIRECTIVE =
::ViewAssets::Finder::Directive.new(JS_TYPE)

Instance Method Summary collapse

Methods inherited from Modifier

#analyize, #generate_requirements_block, #map, #modify, #remove, #retrieve_type, #update, #update_index, #update_map, #update_requirements

Constructor Details

#initializeJsModifier

Returns a new instance of JsModifier.



175
176
177
178
# File 'lib/view_assets/manager/modifier.rb', line 175

def initialize
  @map = ::ViewAssets::Manager::JsMap.new
  @map_value = @map.draw
end

Instance Method Details

#asset_pathObject



189
190
191
# File 'lib/view_assets/manager/modifier.rb', line 189

def asset_path
  ::ViewAssets::JS_PATH
end

#directiveObject



181
182
183
# File 'lib/view_assets/manager/modifier.rb', line 181

def directive
  DIRECTIVE
end

#extObject



185
186
187
# File 'lib/view_assets/manager/modifier.rb', line 185

def ext
  JS_EXT
end