Class: Rubycritic::Browser
- Inherits:
-
Object
- Object
- Rubycritic::Browser
- Defined in:
- lib/rubycritic/browser.rb
Instance Attribute Summary collapse
-
#report_path ⇒ Object
readonly
Returns the value of attribute report_path.
Instance Method Summary collapse
-
#initialize(report_path) ⇒ Browser
constructor
A new instance of Browser.
- #open ⇒ Object
Constructor Details
#initialize(report_path) ⇒ Browser
Returns a new instance of Browser.
7 8 9 |
# File 'lib/rubycritic/browser.rb', line 7 def initialize(report_path) @report_path = report_path end |
Instance Attribute Details
#report_path ⇒ Object (readonly)
Returns the value of attribute report_path.
5 6 7 |
# File 'lib/rubycritic/browser.rb', line 5 def report_path @report_path end |
Instance Method Details
#open ⇒ Object
11 12 13 14 15 |
# File 'lib/rubycritic/browser.rb', line 11 def open Launchy.open(report_path) do |exception| puts "Attempted to open #{report_path} and failed because #{exception}" end end |