ammar/regexp_parser

View on GitHub
lib/regexp_parser/expression/classes/posix_class.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Regexp::Expression
  class PosixClass < Regexp::Expression::Base
    def negative?
      type == :nonposixclass
    end

    def name
      token.to_s
    end
  end
end