Sha256: 37cbf5d8cbc4cf61c1769f1eb8023d0acdd628c861ad3c3984375cf292d36140
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 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, "#{pathname.sub_ext('.html')}#L#{location.line}") end def index_path File.join(root_directory, "index.html") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.7 | lib/rubycritic/report_generators/view_helpers.rb |
rubycritic-0.0.6 | lib/rubycritic/report_generators/view_helpers.rb |