class FastRI::StringRedirectedDisplay
Attributes
formatter[R]
stringio[R]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/fastri/ri_service.rb, line 31 def initialize(*args) super(*args) reset_stringio end
Public Instance Methods
print(*a)
click to toggle source
# File lib/fastri/ri_service.rb, line 40 def print(*a) @stringio.print(*a) end
puts(*a)
click to toggle source
# File lib/fastri/ri_service.rb, line 36 def puts(*a) @stringio.puts(*a) end
reset_stringio()
click to toggle source
# File lib/fastri/ri_service.rb, line 44 def reset_stringio @stringio = StringIO.new("") @formatter.stringio = @stringio end