Anons79 Mini Shell

Directory : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/vendor/pathspec/lib/pathspec/
Upload File :
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

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]