Class: Specifier::Matcher::Base

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

Direct Known Subclasses

Equal

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expectedObject

Returns the value of attribute expected.



4
5
6
# File 'lib/specifier/matcher/base.rb', line 4

def expected
  @expected
end

Instance Method Details

#match?(expected) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/specifier/matcher/base.rb', line 6

def match?(expected)
  self.expected = expected
end