Module: Lines::Error

Included in:
ParseError
Defined in:
lib/lines/common.rb

Class Method Summary collapse

Class Method Details

.tag(obj) ⇒ Object

Used to mark non-lines errors as being part of the library. This lets a library user ‘rescue Lines::Error => ex` and catch all exceptions comming from the lines library.



8
9
10
# File 'lib/lines/common.rb', line 8

def self.tag(obj)
  obj.extend Error
end