Class: TrueClass

Inherits:
Object show all
Defined in:
lib/ae/dot.rb

Instance Method Summary collapse

Instance Method Details

#false!(err = "not false") ⇒ Object

Assert false.

(x == y).false!


16
17
18
19
20
21
22
# File 'lib/ae/dot.rb', line 16

def false!(err="not false")
  if Exception === err
    fail err
  else
    fail Assertion.new(err.to_s, :backtrace=>caller)
  end
end

#true!(msg = nil) ⇒ Object

Assert true.

(x == y).true!


9
10
11
# File 'lib/ae/dot.rb', line 9

def true!(msg=nil)
  true
end