Class Pry::ObjectPath
In: lib/pry/object_path.rb
Parent: Object

`ObjectPath` implements the resolution of "object paths", which are strings that are similar to filesystem paths but meant for traversing Ruby objects. Examples of valid object paths include:

    x
    @foo/@bar
    "string"/upcase
    Pry/Method

Object paths are mostly relevant in the context of the `cd` command. @see github.com/pry/pry/wiki/State-navigation

Methods

new   resolve  

Constants

SPECIAL_TERMS = ["", "::", ".", ".."]

Public Class methods

@param [String] path_string The object path expressed as a string. @param [Array<Binding>] current_stack The current state of the binding

  stack.

Public Instance methods

@return [Array<Binding>] a new stack resulting from applying the given

  path to the current stack.

[Validate]