Class: AngryWeb::ValueMatcher
Direct Known Subclasses
Instance Attribute Summary collapse
-
#mismatch_reason ⇒ Object
readonly
Returns the value of attribute mismatch_reason.
Instance Method Summary collapse
-
#initialize(value) ⇒ ValueMatcher
constructor
A new instance of ValueMatcher.
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_reason ⇒ Object (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 |