Class: Inch::CLI::Command::Options::Console

Inherits:
BaseObject show all
Defined in:
lib/inch/cli/command/options/console.rb

Instance Attribute Summary

Attributes inherited from BaseObject

#object

Attributes inherited from BaseList

#objects

Attributes inherited from Base

#codebase

Instance Method Summary collapse

Methods inherited from BaseObject

#prepare_objects

Methods inherited from BaseList

#prepare_codebase

Methods inherited from Base

#description, #initialize, #name, register_command_as, run, #run, #usage

Methods included from TraceHelper

#ui

Constructor Details

This class inherits a constructor from Inch::CLI::Command::Base

Instance Method Details

#descriptionsObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/inch/cli/command/options/console.rb', line 6

def descriptions
  [
    "",
    "Provides a PRY based REPL to inspect objects.",
    "",
    "Example: " + "$ inch console lib/**/*.rb Foo::Bar#initialize".cyan,
    "",
    "Shortcut commands on the prompt are:",
    "",
    "all".ljust(5) + " returns all code objects",
    "f".ljust(5) + " finds an object by its path",
    "ff".ljust(5) + " finds all objects given a partial path",
    "o".ljust(5) + " returns the code object for OBJECT_NAME (if present)",
  ]
end