Exception: Quarry::Assertion
Overview
Assertion
This is the core class of Quarry’s specification system.
Instance Method Summary collapse
-
#initialize(message, backtrace = nil) ⇒ Assertion
constructor
A new instance of Assertion.
- #to_str ⇒ Object
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(, backtrace=nil) super() set_backtrace(backtrace) if backtrace end |
Instance Method Details
#to_str ⇒ Object
14 15 16 |
# File 'lib/quarry/assertion.rb', line 14 def to_str .to_s.strip end |