Class: Stendhal::Matchers::AbstractMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/stendhal/matchers/abstract_matcher.rb

Direct Known Subclasses

Equality, Kind, Predicate

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#targetObject (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

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/stendhal/matchers/abstract_matcher.rb', line 10

def match(original, options = {})
  raise NotImplementedError
end