class RegexSpec
Public Class Methods
new(regex)
click to toggle source
Calls superclass method
Spec.new
# File lib/pathspec/regexspec.rb, line 4 def initialize(regex) @regex = Regexp.compile regex super end
Public Instance Methods
inclusive?()
click to toggle source
# File lib/pathspec/regexspec.rb, line 10 def inclusive? true end
match(path)
click to toggle source
# File lib/pathspec/regexspec.rb, line 14 def match(path) @regex.match(path) if @regex end