Class: Byebug::LocalInterface
Overview
Interface class for standard byebug use.
Instance Attribute Summary collapse
Attributes inherited from Interface
#command_queue, #restart_file
Instance Method Summary
collapse
Methods inherited from Interface
#errmsg
Constructor Details
Returns a new instance of LocalInterface.
10
11
12
13
|
# File 'lib/byebug/interfaces/local_interface.rb', line 10
def initialize
super
History.load
end
|
Instance Attribute Details
#history ⇒ Object
Returns the value of attribute history.
8
9
10
|
# File 'lib/byebug/interfaces/local_interface.rb', line 8
def history
@history
end
|
Instance Method Details
#close ⇒ Object
27
28
29
|
# File 'lib/byebug/interfaces/local_interface.rb', line 27
def close
History.save
end
|
#confirm(prompt) ⇒ Object
19
20
21
|
# File 'lib/byebug/interfaces/local_interface.rb', line 19
def confirm(prompt)
readline(prompt, false)
end
|
#puts(*args) ⇒ Object
23
24
25
|
# File 'lib/byebug/interfaces/local_interface.rb', line 23
def puts(*args)
STDOUT.puts(*args)
end
|
#read_command(prompt) ⇒ Object
15
16
17
|
# File 'lib/byebug/interfaces/local_interface.rb', line 15
def read_command(prompt)
readline(prompt, true)
end
|