Sha256: 2c6b411fb9427e311389ff75588e6a73a8de338899e755e2b8550633b74c4418

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

module QED

  # = Assertion
  #
  # This is the core class of the whole 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
qed-1.0.0 lib/qed/assertion.rb