Module: BinData::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
148 149 150 151 |
# File 'lib/bindata/string.rb', line 148 def read_and_return_value(io) warn "#{debug_name} does not have a :read_length parameter - returning empty string" "" end |