Exception: Exception
- Defined in:
- library/blur/enhancements.rb
Overview
Reopens the scope of the standard Exception-class to extend it with helpful methods.
Constant Summary collapse
- Pattern =
The pattern to match against the backtrace log.
/^.*?:(\d+):/
Instance Method Summary collapse
-
#line ⇒ Object
Retrieve the line on which the exception was raised from when raised inside a script.
Instance Method Details
#line ⇒ Object
Retrieve the line on which the exception was raised from when raised inside a script.
13 14 15 |
# File 'library/blur/enhancements.rb', line 13 def line backtrace[0].match(Pattern)[1].to_i + 1 end |