Class: AngryWeb::ValueMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/angry_web/matcher.rb

Direct Known Subclasses

EqlMatcher, HashSubsetMatcher, REMatcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ ValueMatcher

Returns a new instance of ValueMatcher.



16
17
18
19
# File 'lib/angry_web/matcher.rb', line 16

def initialize(value)
  @mismatch_reason = "<no reason>"
  @value = value
end

Instance Attribute Details

#mismatch_reasonObject (readonly)

Returns the value of attribute mismatch_reason.



15
16
17
# File 'lib/angry_web/matcher.rb', line 15

def mismatch_reason
  @mismatch_reason
end