push_workspace

push_workspace(*_main) Instance Public methods Creates a new workspace with the given object or binding, and appends it onto the current workspaces stack. See #change_workspace and IRB::WorkSpace.new for more information.

prompting?

prompting?() Instance Public methods Whether verbose? is true, and input_method is either StdioInputMethod or ReadlineInputMethod, see io for more information.

prompt_mode=

prompt_mode=(mode) Instance Public methods Sets the mode of the prompt in this context. See Customizing the IRB Prompt at IRB for more information.

pop_workspace

pop_workspace() Instance Public methods Removes the last element from the current workspaces stack and returns it, or nil if the current workspace stack is empty. Also, see push_workspace.

math_mode=

math_mode=(opt) Instance Public methods Sets bc mode, which loads lib/mathn.rb so fractions or matrix are available. Also available as the -m command line option. See Command line options at IRB and the unix manpage bc(1) for more information.

main

main() Instance Public methods The top-level workspace, see IRB::WorkSpace#main

irb_level

irb_level() Instance Public methods Size of the current WorkSpace stack

inspect_mode=

inspect_mode=(opt) Instance Public methods Specifies the inspect mode with opt: true display inspect false display to_s nil inspect mode in non-math mode, non-inspect mode in math mode See IRB::Inspector for more information. Can also be set using the --inspect and --noinspect command line options. See Command line options at IRB for more command line options.

inspect?

inspect?() Instance Public methods Whether inspect_mode is set or not, see inspect_mode= for more detail.

home_workspace

home_workspace() Instance Public methods Inherited from TOPLEVEL_BINDING.