Sha256: 4a0b937285b6cc21bde1e3c322e8b1ba8d1267d927ba1f0f93d9fa4ed9bb6afa
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module Quarry # = Assertion # # This is the core class of Quarry's specification system. # class Assertion < Exception def initialize(message, backtrace=nil) super(message) set_backtrace(backtrace) if backtrace end def to_str msg = message msg = msg.to_s unless String === msg #msg += '.' unless msg.empty? #msg += "\n#{default}." msg.strip end end end # Copyright (c) 2008 Tiger Ops
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quarry-0.5.0 | lib/quarry/assertion.rb |