Module: Sus::BeFalsey

Defined in:
lib/sus/be_truthy.rb

Overview

Represents a predicate that checks if the subject is falsey.

Class Method Summary collapse

Class Method Details

.call(assertions, subject) ⇒ Object

Evaluate this predicate against a subject.



36
37
38
39
40
# File 'lib/sus/be_truthy.rb', line 36

def self.call(assertions, subject)
	assertions.nested(self) do |assertions|
		assertions.assert(!subject, self)
	end
end

Print a representation of this predicate.



29
30
31
# File 'lib/sus/be_truthy.rb', line 29

def self.print(output)
	output.write("be falsey")
end