Class: Stendhal::Matchers::AbstractMatcher
- Defined in:
- lib/stendhal/matchers/abstract_matcher.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target) ⇒ AbstractMatcher
constructor
A new instance of AbstractMatcher.
- #match(original, options = {}) ⇒ Object
Constructor Details
#initialize(target) ⇒ AbstractMatcher
Returns a new instance of AbstractMatcher.
6 7 8 |
# File 'lib/stendhal/matchers/abstract_matcher.rb', line 6 def initialize(target) @target = target end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
4 5 6 |
# File 'lib/stendhal/matchers/abstract_matcher.rb', line 4 def target @target end |
Instance Method Details
#match(original, options = {}) ⇒ Object
10 11 12 |
# File 'lib/stendhal/matchers/abstract_matcher.rb', line 10 def match(original, = {}) raise NotImplementedError end |