Class: Contr::Matcher::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/contr/matcher.rb

Direct Known Subclasses

Async, Sync

Instance Method Summary collapse

Constructor Details

#initialize(contract, args, result) ⇒ Base

Returns a new instance of Base.



30
31
32
33
34
# File 'lib/contr/matcher.rb', line 30

def initialize(contract, args, result)
  @contract = contract
  @args     = args.freeze
  @result   = result.freeze
end

Instance Method Details

#matchObject

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/contr/matcher.rb', line 36

def match
  raise NotImplementedError, "matcher should implement `#match` method"
end