Module: BinData::String::WarnNoReadLengthPlugin
- Defined in:
- lib/bindata/string.rb
Overview
Warns when reading if :value && no :read_length
Instance Method Summary collapse
Instance Method Details
#read_and_return_value(io) ⇒ Object
127 128 129 130 |
# File 'lib/bindata/string.rb', line 127 def read_and_return_value(io) Kernel.warn "#{debug_name} does not have a :read_length parameter - returning empty string" "" end |