Sha256: 81044f252f97ebb2fb78819002829b7a60303dad1f16e2091561e5a5bfe4b956

Contents?: true

Size: 298 Bytes

Versions: 4

Compression:

Stored size: 298 Bytes

Contents

require 'stringio'

module IOString
  
  module String
    def io
      @__io ||= StringIO.new(self)
    end
  end
  
  module IO
    def io
      self
    end
  end
  
end

class String
  include IOString::String
end

class StringIO
  include IOString::IO
end

class IO
  include IOString::IO
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elia-2.4.2.pre lib/io_string.rb
elia-2.4.1 lib/io_string.rb
elia-2.3.2 lib/io_string.rb
elia-1.2.0 lib/io_string.rb