Class

IRB::Context

Inheritance
< Object

Constants

Name   Description
IDNAME_IVARS = ["@prompt_mode"]
NOPRINTING_IVARS = ["@last_value"]
NO_INSPECTING_IVARS = ["@irb", "@io"]

Attributes

Name Visibility R/W Description
ap_name public RW
auto_indent_mode public RW
back_trace_limit public RW
debug_level public R
echo public RW
eval_history public R
ignore_eof public RW
ignore_sigint public RW
inspect_mode public R
io public RW
irb public RW
irb_name public R
irb_name public RW
irb_path public RW
last_value public R
load_modules public RW
math_mode public R
prompt_c public RW
prompt_i public RW
prompt_mode public R
prompt_n public RW
prompt_s public RW
rc public RW
return_format public RW
thread public R
use_readline public R
use_tracer public R
verbose public RW
workspace public RW
workspace_home public R

Aliases

Method Alias Description
echo → echo?
exit → __exit__
ignore_eof → ignore_eof?
ignore_sigint → ignore_sigint?
inspect → __inspect__
math_mode → math?
rc → rc?
to_s → __to_s__
use_readline → use_readline?
use_tracer → use_tracer?

Methods

Class

Visibility Signature
public new (irb, workspace = nil, input_method = nil, output_method = nil)

Instance

Visibility Signature
public _set_last_value (value)
public change_workspace (*_main)
public debug? ()
public debug_level= (value)
public eval_history= (no)
public evaluate (line, line_no)
public exit (ret = 0)
public file_input? ()
public history_file ()
public history_file= (hist)
public home_workspace ()
public init_save_history ()
public inspect ()
public inspect? ()
public inspect? ()
public inspect_mode= (opt)
public irb_level ()
public main ()
public math_mode= (opt)
public pop_workspace ()
public prompt_mode= (mode)
public prompting? ()
public push_workspace (*_main)
public save_history ()
public save_history= (val)
public set_last_value (value)
public set_last_value (value)
public to_s ()
public use_loader ()
public use_loader= (opt)
public use_loader? ()
public use_readline= (opt)
public use_tracer= (opt)
public verbose? ()
public workspaces ()

Class Method Detail

new(irb, workspace = nil, input_method = nil, output_method = nil)

Arguments:

  input_method: nil -- stdin or readline
                String -- File
                other -- using this as InputMethod

Instance Method Detail

_set_last_value(value)

Alias for set_last_value

change_workspace(*_main)

debug?()

debug_level=(value)

eval_history=(no)

evaluate(line, line_no)

exit(ret = 0)

file_input?()

history_file()

history_file=(hist)

home_workspace()

init_save_history()

inspect()

inspect?()

inspect?()

inspect_mode=(opt)

irb_level()

main()

math_mode=(opt)

pop_workspace()

prompt_mode=(mode)

prompting?()

push_workspace(*_main)

save_history()

save_history=(val)

set_last_value(value)

set_last_value(value)

to_s()

Alias for inspect

use_loader()

use_loader=(opt)

use_loader?()

Alias for use_loader

use_readline=(opt)

use_tracer=(opt)

verbose?()

workspaces()