Class: MoCo::BrowserError
- Inherits:
-
Object
- Object
- MoCo::BrowserError
- Defined in:
- lib/moco/browser_error.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error) ⇒ BrowserError
constructor
A new instance of BrowserError.
- #message ⇒ Object
Constructor Details
#initialize(error) ⇒ BrowserError
Returns a new instance of BrowserError.
11 12 13 14 15 16 |
# File 'lib/moco/browser_error.rb', line 11 def initialize(error) @message = error. @file = file(error) @line = error.line @column = error.column end |
Class Method Details
.message(error) ⇒ Object
7 8 9 |
# File 'lib/moco/browser_error.rb', line 7 def self.(error) new(error). end |
Instance Method Details
#message ⇒ Object
18 19 20 |
# File 'lib/moco/browser_error.rb', line 18 def + on_line + in_file end |