Class: Punchout::Puncher::Matchable::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/punchout/puncher/matchable/resolver.rb

Instance Method Summary collapse

Constructor Details

#initialize(matcher) ⇒ Resolver

Returns a new instance of Resolver.



5
6
7
# File 'lib/punchout/puncher/matchable/resolver.rb', line 5

def initialize(matcher)
  @matcher = matcher
end

Instance Method Details

#build(thing) ⇒ Object



9
10
11
# File 'lib/punchout/puncher/matchable/resolver.rb', line 9

def build(thing)
  Matchable.new(@matcher,thing)
end