class
Importance_1
v4.2.1 - Show latest stable - 0 notes - Superclass: Object

URI path and fragment escaping http://tools.ietf.org/html/rfc3986

Constants

ENCODE = "%%%02X".freeze

US_ASCII = Encoding::US_ASCII

UTF_8 = Encoding::UTF_8

EMPTY = "".force_encoding(US_ASCII).freeze

DEC2HEX = (0..255).to_a.map{ |i| ENCODE % i }.map{ |s| s.force_encoding(US_ASCII) }

ALPHA = "a-zA-Z".freeze

DIGIT = "0-9".freeze

UNRESERVED = "#{ALPHA}#{DIGIT}\\-\\._~".freeze

SUB_DELIMS = "!\\$&'\\(\\)\\*\\+,;=".freeze

ESCAPED = /%[a-zA-Z0-9]{2}/.freeze

FRAGMENT = /[^#{UNRESERVED}#{SUB_DELIMS}:@\/\?]/.freeze

SEGMENT = /[^#{UNRESERVED}#{SUB_DELIMS}:@]/.freeze

PATH = /[^#{UNRESERVED}#{SUB_DELIMS}:@\/]/.freeze

Attributes

Show files where this class is defined (1 file)
Register or log in to add new notes.