module IRB
Public Class Methods
Output()
click to toggle source
# File lib/tailog/ext/irb.rb, line 6 def Output conf[:OUTPUT] end
evaluate_string(string)
click to toggle source
# File lib/tailog/ext/irb.rb, line 10 def evaluate_string string conf[:PROMPT_MODE] = :DEFAULT conf[:VERBOSE] = false conf[:OUTPUT] = [] irb = IRB::Irb.new nil, StringInputMethod.new(string + "\nexit\n") conf[:MAIN_CONTEXT] = irb.context irb.eval_input result = conf[:OUTPUT] conf[:OUTPUT] = nil result end
irb_exit(irb, ret)
click to toggle source
# File lib/tailog/ext/irb.rb, line 26 def irb_exit irb, ret if IRB.Output ret else raw_irb_exit irb, ret end end
Also aliased as: raw_irb_exit