Exception: L
- Inherits:
-
StandardError
- Object
- StandardError
- L
- Defined in:
- lib/glowup/l.rb
Overview
L exception inherits from StandardError
Example:
>> raise L, “the message”
>> l = L.new(“some message”)
>> l.message => “some message”
>> raise l
Instance Method Summary collapse
- #initialize(data) ⇒ L constructor
-
#message ⇒ String
Example:.
Constructor Details
#initialize(data) ⇒ L
18 19 20 21 |
# File 'lib/glowup/l.rb', line 18 def initialize(data) super @data = data end |
Instance Method Details
#message ⇒ String
Example:
>> rescue L => e
>> puts e.message
29 30 31 |
# File 'lib/glowup/l.rb', line 29 def @data end |