Class: ViewAssets::Finder::JsFinder

Inherits:
Finder
  • Object
show all
Defined in:
lib/view_assets/finder/js_finder.rb

Instance Attribute Summary

Attributes inherited from Finder

#action, #assets, #controller, #parsed_manifests

Instance Method Summary collapse

Methods inherited from Finder

#empty, #initialize, #retrieve, #retrieve_manifest

Constructor Details

This class inherits a constructor from ViewAssets::Finder::Finder

Instance Method Details

#asset_extensionObject



9
10
11
# File 'lib/view_assets/finder/js_finder.rb', line 9

def asset_extension
  JS_EXT
end

#asset_typeObject



13
14
15
# File 'lib/view_assets/finder/js_finder.rb', line 13

def asset_type
  JS_TYPE
end

#assets_pathObject



4
5
6
7
# File 'lib/view_assets/finder/js_finder.rb', line 4

def assets_path
  # 'assets/javascripts'
  JS_PATH
end

#tag(src) ⇒ Object



17
18
19
# File 'lib/view_assets/finder/js_finder.rb', line 17

def tag(src)
  ViewAssets.tag(:js, src)
end