Class Pry::Command::ShowInfo
In: lib/pry/commands/show_info.rb
Parent: Pry::ClassCommand

Methods

Public Instance methods

This method checks whether the `code_object` is a WrappedModule, if it is, then it returns the first candidate (monkeypatch) with accessible source (or docs). If `code_object` is not a WrappedModule (i.e a method or a command) then the `code_object` itself is just returned.

@return [Pry::WrappedModule, Pry::Method, Pry::Command]

takes into account possible yard docs, and returns yard_file / yard_line Also adjusts for start line of comments (using start_line_for), which it has to infer by subtracting number of lines of comment from start line of code_object

Generate a header (meta-data information) for all the code object types: methods, modules, commands, procs…

[Validate]