Exception: Quarry::Assertion

Inherits:
Exception
  • Object
show all
Defined in:
lib/quarry/assertion.rb

Overview

Assertion

This is the core class of Quarry’s specification system.

Instance Method Summary collapse

Constructor Details

#initialize(message, backtrace = nil) ⇒ Assertion

Returns a new instance of Assertion.



9
10
11
12
# File 'lib/quarry/assertion.rb', line 9

def initialize(message, backtrace=nil)
  super(message)
  set_backtrace(backtrace) if backtrace
end

Instance Method Details

#to_strObject



14
15
16
# File 'lib/quarry/assertion.rb', line 14

def to_str
  message.to_s.strip
end