Class: Kommando::Matchers::Once
- Defined in:
- lib/kommando/matchers/once.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#call, #every, #initialize, #once
Constructor Details
This class inherits a constructor from Kommando::Matchers::Base
Instance Method Details
#match(string) ⇒ Object
2 3 4 |
# File 'lib/kommando/matchers/once.rb', line 2 def match(string) string.match(@regexp) end |