Type:
Class
Constants:
NOPRINTING_IVARS : ["@last_value"]
NO_INSPECTING_IVARS : ["@irb", "@io"]
IDNAME_IVARS : ["@prompt_mode"]

A class that wraps the current state of the irb session, including the configuration of IRB.conf.

eval_history=
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

eval_history=(no) Instance Public methods Sets command result history limit

2025-01-10 15:47:30
use_loader?
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

use_loader?() Instance Public methods Alias for:

2025-01-10 15:47:30
inspect_mode=
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

inspect_mode=(opt) Instance Public methods Specifies the inspect mode with

2025-01-10 15:47:30
new
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

new(irb, workspace = nil, input_method = nil, output_method = nil) Class Public methods

2025-01-10 15:47:30
inspect?
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

inspect?() Instance Public methods Whether inspect_mode is set or not, see

2025-01-10 15:47:30
history_file
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

history_file() Instance Public methods A copy of the default IRB.conf

2025-01-10 15:47:30
home_workspace
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

home_workspace() Instance Public methods Inherited from TOPLEVEL_BINDING

2025-01-10 15:47:30
use_loader
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

use_loader() Instance Public methods Returns whether irb's own

2025-01-10 15:47:30
main
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

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

2025-01-10 15:47:30
set_last_value
  • References/Ruby on Rails/Ruby/Classes/IRB/IRB::Context

set_last_value(value) Instance Public methods Sets the return value from the

2025-01-10 15:47:30