Method: BinData::String#snapshot
- Defined in:
- lib/bindata/string.rb
#snapshot ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/bindata/string.rb', line 71 def snapshot # override to trim padding snap = super snap = clamp_to_length(snap) if get_parameter(:trim_padding) trim_padding(snap) else snap end end |