class Regexp::Expression::UnicodeProperty::Base
Public Instance Methods
Source
# File lib/regexp_parser/expression/classes/unicode_property.rb, line 6 def name text[/\A\\[pP]\{([^}]+)\}\z/, 1] end
Source
# File lib/regexp_parser/expression/classes/unicode_property.rb, line 10 def shortcut Regexp::Scanner.short_prop_map.key(token.to_s) end