Class: Contr::Matcher::Base
- Inherits:
-
Object
- Object
- Contr::Matcher::Base
- Extended by:
- Forwardable
- Defined in:
- lib/contr/matcher.rb
Instance Method Summary collapse
-
#initialize(contract, args, result) ⇒ Base
constructor
A new instance of Base.
- #match ⇒ Object
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
#match ⇒ Object
36 37 38 |
# File 'lib/contr/matcher.rb', line 36 def match raise NotImplementedError, "matcher should implement `#match` method" end |