Sha256: ded615bdabd8481be52ce6755a42edf3517bcac504da472bdb9c8e9013f0da2e
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
require "pathname" 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 file_path(file) File.join(root_directory, Pathname(file).sub_ext(".html")) end def smell_location_path(location) File.join(root_directory, "#{location.pathname.sub_ext('.html')}#L#{location.line}") end def root_directory ::Rubycritic.configuration.root end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.14 | lib/rubycritic/report_generators/view_helpers.rb |