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