Sha256: ea6cfbf834b2bb1e79b99029c7727aa832fe434f6b187fb643146e66aaf3bd6e

Contents?: true

Size: 363 Bytes

Versions: 7

Compression:

Stored size: 363 Bytes

Contents

class Exception
  # Is this exception the result of an assertion?
  def assertion?
    @assertion || false
  end

  # Set +true+/+false+ if the this exception is 
  # an assertion.
  def set_assertion(boolean)
    @assertion = !!boolean
  end

  #
  def negative?
    @negative || false
  end

  #
  def set_negative(boolean)
    @negative = !!boolean
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ae-1.8.2 lib/ae/core_ext/exception.rb
ae-1.8.1 lib/ae/core_ext/exception.rb
ae-1.8.0 lib/ae/core_ext/exception.rb
ae-1.7.4 lib/ae/core_ext/exception.rb
ae-1.7.3 lib/ae/core_ext/exception.rb
ae-1.7.2 lib/ae/core_ext/exception.rb
ae-1.7.1 lib/ae/core_ext/exception.rb