Exception: BooleanAssay
- Defined in:
- lib/assay/boolean_assay.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Assertion
Constants included from Assay::Assertable
Class Method Summary collapse
-
.pass?(subject) ⇒ Boolean
Check assertion.
Methods inherited from Assertion
by_name, by_operator, inherited, register, subclasses
Methods included from Assay::Assertable
#[], #assert!, #assert_message, #assertive_name, #assertor, #fail?, #operator, #pass?, #refute!, #refute_message
Class Method Details
.pass?(subject) ⇒ Boolean
Check assertion.
10 11 12 |
# File 'lib/assay/boolean_assay.rb', line 10 def self.pass?(subject) subject.true? || subject.false? # TODO: Kernel#boolean? method end |