Directory : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/vendor/pathspec/lib/pathspec/ |
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/vendor/pathspec/lib/pathspec/regexspec.rb |
require 'pathspec/spec' class RegexSpec < Spec def initialize(regex) @regex = Regexp.compile regex super end def inclusive? true end def match(path) @regex.match(path) if @regex end end