Class: Kommando::Matchers::Once

Inherits:
Base
  • Object
show all
Defined in:
lib/kommando/matchers/once.rb

Instance Attribute Summary

Attributes inherited from Base

#nested_matchers

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