class StructFu::String

Strings are just like regular strings, except it comes with a read() function so that it behaves like other StructFu elements.

Public Instance Methods

read(str) click to toggle source
# File lib/packetfu/structfu.rb, line 197
def read(str)
  str = str.to_s
  self.replace str
  self
end