| Class | Pry::InputCompleter |
| In: |
lib/pry/input_completer.rb
|
| Parent: | Object |
taken from irb Implements tab completion for Readline in Pry
| NUMERIC_REGEXP | = | /^(-?(0[dbo])?[0-9_]+(\.[0-9_]+)?([eE]-?[0-9]+)?)\.([^.]*)$/ |
| ARRAY_REGEXP | = | /^([^\]]*\])\.([^.]*)$/ |
| SYMBOL_REGEXP | = | /^(:[^:.]*)$/ |
| SYMBOL_METHOD_CALL_REGEXP | = | /^(:[^:.]+)\.([^.]*)$/ |
| REGEX_REGEXP | = | /^(\/[^\/]*\/)\.([^.]*)$/ |
| PROC_OR_HASH_REGEXP | = | /^([^\}]*\})\.([^.]*)$/ |
| TOPLEVEL_LOOKUP_REGEXP | = | /^::([A-Z][^:\.\(]*)$/ |
| CONSTANT_REGEXP | = | /^([A-Z][A-Za-z0-9]*)$/ |
| CONSTANT_OR_METHOD_REGEXP | = | /^([A-Z].*)::([^:.]*)$/ |
| HEX_REGEXP | = | /^(-?0x[0-9a-fA-F_]+)\.([^.]*)$/ |
| GLOBALVARIABLE_REGEXP | = | /^(\$[^.]*)$/ |
| VARIABLE_REGEXP | = | /^([^."].*)\.([^.]*)$/ |
| ReservedWords | = | [ "BEGIN", "END", "alias", "and", "begin", "break", "case", "class", "def", "defined", "do", "else", "elsif", "end", "ensure", "false", "for", "if", "in", "module", "next", "nil", "not", "or", "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", "until", "when", "while", "yield" ] |
| Operators | = | [ "%", "&", "*", "**", "+", "-", "/", "<", "<<", "<=", "<=>", "==", "===", "=~", ">", ">=", ">>", "[]", "[]=", "^", "!", "!=", "!~" |
| WORD_ESCAPE_STR | = | " \t\n\"\\'`><=;|&{(" |
build_path seperates the input into two parts: path and input. input is the partial string that should be completed path is a proc that takes an input and builds a full path.