Class: Gimme::Matchers::Capture

Inherits:
Matcher
  • Object
show all
Defined in:
lib/gimme/captor.rb

Instance Method Summary collapse

Constructor Details

#initialize(captor) ⇒ Capture

Returns a new instance of Capture.



9
10
11
# File 'lib/gimme/captor.rb', line 9

def initialize(captor)
  @captor = captor
end

Instance Method Details

#matches?(arg) ⇒ Boolean

Returns:



13
14
15
16
# File 'lib/gimme/captor.rb', line 13

def matches?(arg)
  @captor.value = arg
  true
end