Sha256: 361d7c41585b766f79ae8c453dee1b8bbececce197788fd93e1a157351a850c9

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 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
      message.to_s.strip
    end

  end

end

# Copyright (c) 2008 Tiger Ops

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quarry-0.5.2 lib/quarry/assertion.rb