Sha256: 9e82deca1f98bc84b7194bea0eab5e89630f84b22e440043e8ad3cdd67de9d11

Contents?: true

Size: 356 Bytes

Versions: 33

Compression:

Stored size: 356 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

33 entries across 33 versions & 2 rubygems

Version Path
rubycritic-4.9.1 lib/rubycritic/browser.rb
rubycritic-4.9.0 lib/rubycritic/browser.rb
rubycritic-4.8.1 lib/rubycritic/browser.rb
rubycritic-4.8.0 lib/rubycritic/browser.rb
rubycritic-4.7.0 lib/rubycritic/browser.rb
rubycritic-4.6.1 lib/rubycritic/browser.rb
rubycritic-4.6.0 lib/rubycritic/browser.rb
rubycritic-4.5.2 lib/rubycritic/browser.rb
rubycritic-4.5.1 lib/rubycritic/browser.rb
rubycritic-4.5.0 lib/rubycritic/browser.rb
rubycritic-4.4.1 lib/rubycritic/browser.rb
rubycritic-4.4.0 lib/rubycritic/browser.rb
rubycritic-4.3.3 lib/rubycritic/browser.rb
rubycritic-4.3.2 lib/rubycritic/browser.rb
rubycritic-4.3.1 lib/rubycritic/browser.rb
rubycritic-4.3.0 lib/rubycritic/browser.rb
rubycritic-4.2.2 lib/rubycritic/browser.rb
rubycritic-4.2.1 lib/rubycritic/browser.rb
rubycritic-4.2.0 lib/rubycritic/browser.rb
rubycritic-simplecov-4.1.1 lib/rubycritic/browser.rb