class Octopress::Ink::Assets::Javascript
Public Instance Methods
add()
click to toggle source
Calls superclass method
Octopress::Ink::Assets::Asset#add
# File lib/octopress-ink/assets/javascript.rb, line 13 def add Plugins.add_js_tag tag super end
destination()
click to toggle source
# File lib/octopress-ink/assets/javascript.rb, line 18 def destination File.join(base, plugin.slug, file) end
tag()
click to toggle source
# File lib/octopress-ink/assets/javascript.rb, line 5 def tag %Q{<script src="#{tag_path}"></script>} end
tag_path()
click to toggle source
# File lib/octopress-ink/assets/javascript.rb, line 9 def tag_path Filters.expand_url(File.join(dir, file)) end