Sha256: b7a25a79d98940d2faf3738f86ae491f7baa84fc59ce422978864503b600e98c
Contents?: true
Size: 893 Bytes
Versions: 2
Compression:
Stored size: 893 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 overview_path File.join(root_directory, "overview.html") end def code_index_path File.join(root_directory, "code_index.html") end def smells_index_path File.join(root_directory, "smells_index.html") end def root_directory ::Rubycritic.configuration.root end def analysed_file_name(pathname) pathname.basename.sub_ext("") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.12 | lib/rubycritic/report_generators/view_helpers.rb |
rubycritic-0.0.11 | lib/rubycritic/report_generators/view_helpers.rb |