Class: Gimme::Matchers::Capture
Instance Method Summary collapse
-
#initialize(captor) ⇒ Capture
constructor
A new instance of Capture.
- #matches?(arg) ⇒ Boolean
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
13 14 15 16 |
# File 'lib/gimme/captor.rb', line 13 def matches?(arg) @captor.value = arg true end |