Exception: Exception

Defined in:
lib/rubytest/core_ext/exception.rb

Direct Known Subclasses

Assertion

Instance Method Summary collapse

Instance Method Details

#assertion?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/rubytest/core_ext/exception.rb', line 7

def assertion?
  @assertion
end

#priorityObject



15
16
17
# File 'lib/rubytest/core_ext/exception.rb', line 15

def priority
  @priority ||= 0
end

#set_assertion(boolean) ⇒ Object



3
4
5
# File 'lib/rubytest/core_ext/exception.rb', line 3

def set_assertion(boolean)
  @assertion = boolean
end

#set_priority(integer) ⇒ Object



11
12
13
# File 'lib/rubytest/core_ext/exception.rb', line 11

def set_priority(integer)
  @priority = integer.to_i
end