class Amalgalite::Taps::StringIO
This class provides an IO tap that writes to a StringIO. The result is available via .to_s or .string.
Public Class Methods
new()
click to toggle source
Calls superclass method
Amalgalite::Taps::IO.new
# File lib/amalgalite/taps/io.rb, line 59 def initialize @stringio = ::StringIO.new super( @stringio ) end
Public Instance Methods
to_s()
click to toggle source
# File lib/amalgalite/taps/io.rb, line 64 def to_s @stringio.string end
Also aliased as: string