Class: NeuronCheckSystem::ObjectIdenticalMathcer
- Inherits:
-
MatcherBase
- Object
- MatcherBase
- NeuronCheckSystem::ObjectIdenticalMathcer
- Defined in:
- lib/neuroncheck/matcher.rb
Overview
オブジェクトとして同一であることを判定する
Instance Attribute Summary
Attributes inherited from MatcherBase
Instance Method Summary collapse
Methods inherited from MatcherBase
#expected_short_caption, #get_error_message, #initialize, #meta_info_as_json
Constructor Details
This class inherits a constructor from NeuronCheckSystem::MatcherBase
Instance Method Details
#expected_caption ⇒ Object
110 111 112 |
# File 'lib/neuroncheck/matcher.rb', line 110 def expected_caption @expected.inspect end |
#match?(value, self_object) ⇒ Boolean
106 107 108 |
# File 'lib/neuroncheck/matcher.rb', line 106 def match?(value, self_object) @expected.equal?(value) end |