Method: BinData::Base#to_binary_s

Defined in:
lib/bindata/base.rb

#to_binary_s(&block) ⇒ Object

Returns the string representation of this data object.



174
175
176
177
178
# File 'lib/bindata/base.rb', line 174

def to_binary_s(&block)
  io = BinData::IO.create_string_io
  write(io, &block)
  io.string
end