Class: ArgumentSpecification::Matchers::Be

Inherits:
BaseMatcher
  • Object
show all
Defined in:
lib/argspec/matchers/be.rb

Instance Attribute Summary

Attributes inherited from BaseMatcher

#actual, #block, #metadata

Instance Method Summary collapse

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

Returns:

  • (Boolean)


20
21
22
# File 'lib/argspec/matchers/be.rb', line 20

def matches?
  !!@actual
end