Module: Contrast::Utils::ObjectShare

Overview

A utility class where a series of commonly used Strings and other commonly used objects can be store and frozen to prevent unnecessary duplication.

Constant Summary collapse

ASTERISK =

Strings

'*'
BACK_SLASH =
'\\'
EMPTY_STRING =
''
COLON =
':'
COMMA =
','
CONTRAST_DOT =
'contrast.'
DASH =
'-'
DOUBLE_QUOTE =
'"'
EQUALS =
'='
EXCLAMATION =
'!'
HTTP_SCORE =
'HTTP_'
HTTP_START =
'http:'
HTTPS_START =
'https:'
NEW_LINE =
"\n"
NIL_STRING =
'nil'
NIL_64_STRING =
'bmls'
PERIOD =
'.'
POUND_SIGN =
'#'
QUESTION_MARK =
'?'
RETURN =
"\r"
SEMICOLON =
';'
SINGLE_QUOTE =
'\''
SLASH =
'/'
SPACE =
' '
UNDERSCORE =
'_'
DOUBLE_UNDERSCORE =
'__'
AT =
'@'
LEFT_ANGLE =
'<'
COLON_SLASH_SLASH =
'://'
DOLLAR_SIGN =
'$'
AMPERSAND =
'&'
CARROT =
'^'
BANG =
'!'
WRITE_FLAG =
'w'
PARENT_PATH =
'..'
RUBY =
'Ruby'
CACHE =
'cache'
CONTRAST_PATCHED_METHOD_START =
'cs__patched_'
EMPTY_ARRAY =
[].freeze
EMPTY_HASH =
{}.freeze
DIGIT_REGEXP =

RegExps

/[[:digit:]]/
WHITE_SPACE_REGEXP =
/\s/
NOT_WHITE_SPACE_REGEXP =
/[^\s]/
OVERRIDE_MESSAGE =

Messages

'A security filter prevented original response from being returned.'
TRUE =

Configs

'true'
FALSE =
'false'
OBJECT_KEY =
'O'
RETURN_KEY =
'R'
UNKNOWN =
'unknown'
INDEX =
'index'