File: irb.rb

package info (click to toggle)
ruby-rbtrace 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: ruby: 1,128; ansic: 925; sh: 42; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 348 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

require 'irb'

class IRB::Context
  def puts(arg=nil)
    RBTraceCLI.tracer.puts(arg)
  end

  def print(arg=nil)
    RBTraceCLI.tracer.print(arg)
  end

  def inspect_last_value(output = +"")
    @last_value
  end
end

class IRB::WorkSpace
  def evaluate(statements, file=__FILE__, line=__LINE__)
    RBTraceCLI.tracer.eval(statements)
  end
end