Sha256: abd561ca49f8d2941130b15726eaa33c8620cbc36152789509569bb05ad34629

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

require 'launchy'

module RubyCritic
  class Browser
    attr_reader :report_path

    def initialize(report_path)
      @report_path = report_path
    end

    def open
      Launchy.open(report_path) do |exception|
        puts "Attempted to open #{report_path} and failed because #{exception}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubycritic-2.9.3 lib/rubycritic/browser.rb