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.
172 173 174 175 176 |
# File 'lib/bindata/base.rb', line 172 def to_binary_s(&block) io = BinData::IO.create_string_io write(io, &block) io.string end |