Class: ArgumentSpecification::Matchers::BeFalsey
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- ArgumentSpecification::Matchers::BeFalsey
- Defined in:
- lib/argspec/matchers/be_falsey.rb
Instance Attribute Summary
Attributes inherited from BaseMatcher
Instance Method Summary collapse
-
#matches? ⇒ Boolean
Check if the actual object matches.
Methods inherited from BaseMatcher
#failure_message, #failure_message_when_negated, matcher_name
Instance Method Details
#matches? ⇒ Boolean
Check if the actual object matches
Example:
>> matcher.matches?
=> true
12 13 14 |
# File 'lib/argspec/matchers/be_falsey.rb', line 12 def matches? !@actual end |