Exception: Exception

Defined in:
lib/nrser/core_ext/exception.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.dedented(message) ⇒ Exception

Create a new instance from the dedented message.

See NRSER.dedent.

Parameters:

Returns:



26
27
28
# File 'lib/nrser/core_ext/exception.rb', line 26

def self.dedented message
  new NRSER.dedent( message )
end

.squished(message) ⇒ Exception

Create a new instance from the squished message.

See NRSER.squish.

Parameters:

Returns:



14
15
16
# File 'lib/nrser/core_ext/exception.rb', line 14

def self.squished message
  new NRSER.squish( message )
end

Instance Method Details

#formatObject



2
3
4
# File 'lib/nrser/core_ext/exception.rb', line 2

def format
  NRSER.format_exception self
end