Namespace

Files

Class/Module Index [+]

Quicksearch

BinData::IO

A wrapper around an IO object. The wrapper provides a consistent interface for BinData objects to use when accessing the IO.

Public Class Methods

create_string_io(str = "") click to toggle source

Creates a StringIO around str.

# File lib/bindata/io.rb, line 8
def self.create_string_io(str = "")
  StringIO.new(str.dup.force_encoding(Encoding::BINARY))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.