Sha256: 5c8da55e6b5a3d958bdb9541f9ec5aa4609d7f434e1b7645aafa67128c4020b2

Contents?: true

Size: 329 Bytes

Versions: 319

Compression:

Stored size: 329 Bytes

Contents

if defined?(JRUBY_VERSION)
  class WriterStringIO < Java.java.io.StringWriter
    def write(what)
      super(Java.java.lang.String.new(what.to_s))
    end

    def string
      toString()
    end
  end

  require 'stringio'
  class StringIO
    class << self
      def new
        WriterStringIO.new
      end
    end
  end
end

Version data entries

319 entries across 314 versions & 10 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.8/gems/gherkin-2.11.1/spec/gherkin/output_stream_string_io.rb
candlepin-api-0.4.0 bundle/ruby/gems/gherkin-2.11.1/spec/gherkin/output_stream_string_io.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/gherkin-2.11.1/spec/gherkin/output_stream_string_io.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/spec/gherkin/output_stream_string_io.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/spec/gherkin/output_stream_string_io.rb
gherkin-2.11.6 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.6-x86-mswin32 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.6-x86-mingw32 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.6-java spec/gherkin/output_stream_string_io.rb
gherkin-2.11.5 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.5-x86-mswin32 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.5-x86-mingw32 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.5-java spec/gherkin/output_stream_string_io.rb
gherkin-2.11.4 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.4-x86-mswin32 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.4-x86-mingw32 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.4-java spec/gherkin/output_stream_string_io.rb
gherkin-2.11.3 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.3-x86-mswin32 spec/gherkin/output_stream_string_io.rb
gherkin-2.11.3-x86-mingw32 spec/gherkin/output_stream_string_io.rb