Method: PathSpec::RegexSpec#initialize
- Defined in:
- lib/pathspec/regexspec.rb
#initialize(pattern) ⇒ RegexSpec
Returns a new instance of RegexSpec.
8 9 10 11 12 13 |
# File 'lib/pathspec/regexspec.rb', line 8 def initialize(pattern) @pattern = pattern.dup @regex = Regexp.compile pattern super end |