Exception: L

Inherits:
StandardError
  • Object
show all
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

Constructor Details

#initialize(data) ⇒ L

Parameters:

  • data (String)


18
19
20
21
# File 'lib/glowup/l.rb', line 18

def initialize(data)
  super
  @data = data
end

Instance Method Details

#messageString

Example:

>> rescue L => e

>> puts e.message

Returns:

  • (String)


29
30
31
# File 'lib/glowup/l.rb', line 29

def message
  @data
end