Sha256: 1cc087abfdbe96f503528baf15ac391d56d08ebf150e31e81ac4557ce2f01d79

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true
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

7 entries across 7 versions & 1 rubygems

Version Path
rubycritic-3.2.0 lib/rubycritic/browser.rb
rubycritic-3.1.3 lib/rubycritic/browser.rb
rubycritic-3.1.2 lib/rubycritic/browser.rb
rubycritic-3.1.1 lib/rubycritic/browser.rb
rubycritic-3.1.0 lib/rubycritic/browser.rb
rubycritic-3.0.0 lib/rubycritic/browser.rb
rubycritic-2.9.4 lib/rubycritic/browser.rb