Class: NeuronCheckSystem::RangeMatcher
- Inherits:
-
MatcherBase
- Object
- MatcherBase
- NeuronCheckSystem::RangeMatcher
- 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
137 138 139 |
# File 'lib/neuroncheck/matcher.rb', line 137 def expected_caption "included in #{@expected.inspect}" end |
#match?(value, self_object) ⇒ Boolean
133 134 135 |
# File 'lib/neuroncheck/matcher.rb', line 133 def match?(value, self_object) @expected.include?(value) end |