Sha256: 21a12785436c7c4f462c363428e0a959574b169805c2e7ba8037694296006da3
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module Rubycritic module ViewHelpers def javascript_path(file) asset_path(File.join("javascripts", "#{file}.js")) end def stylesheet_path(file) asset_path(File.join("stylesheets", "#{file}.css")) end def asset_path(file) File.join(root_directory, "assets", file) end def smell_location_path(location) pathname = location.pathname File.join(root_directory, File.dirname(pathname), "#{pathname.basename.sub_ext("")}.html#L#{location.line}") end def index_path File.join(root_directory, "index.html") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.5 | lib/rubycritic/report_generators/view_helpers.rb |