class RubyCritic::Browser

Attributes

report_path[R]

Public Class Methods

new(report_path) click to toggle source
# File lib/rubycritic/browser.rb, line 9
def initialize(report_path)
  @report_path = report_path
end

Public Instance Methods

open() click to toggle source
# File lib/rubycritic/browser.rb, line 13
def open
  Launchy.open(report_path) do |exception|
    puts "Attempted to open #{report_path} and failed because #{exception}"
  end
end