Class: ArgumentSpecification::Matchers::Be
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- ArgumentSpecification::Matchers::Be
- Defined in:
- lib/argspec/matchers/be.rb
Constant Summary collapse
- OPERATORS =
{ :== => :equal, :=== => :case_equal, :=~ => :match, :< => :be_less_than, :> => :be_greater_than, :<= => :be_less_than_or_equal_to, :>= => :be_greater_than_or_equal_to }
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
28 29 30 |
# File 'lib/argspec/matchers/be.rb', line 28 def matches? !!@actual end |