Sha256: 27447eef58879e5067833e1795a4ece231809ce8bcda75751d2cf38c8a9a1560

Contents?: true

Size: 249 Bytes

Versions: 1

Compression:

Stored size: 249 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ae-1.7.0 lib/ae/core_ext/exception.rb