Class: RegexpFilter

Inherits:
MatchFilter show all
Defined in:
lib/mspec/runner/filters/regexp.rb

Instance Method Summary collapse

Methods inherited from MatchFilter

#===, #initialize, #register, #unregister

Constructor Details

This class inherits a constructor from MatchFilter

Instance Method Details

#to_regexp(*strings) ⇒ Object


4
5
6
# File 'lib/mspec/runner/filters/regexp.rb', line 4

def to_regexp(*strings)
  strings.map { |str| Regexp.new str }
end