Class: PacketGen::StructFu::String
- Inherits:
-
String
- Object
- String
- PacketGen::StructFu::String
- Defined in:
- lib/packetgen/structfu.rb
Overview
Strings are just like regular strings, except it comes with a read() function so that it behaves like other StructFu elements.
Instance Method Summary collapse
Instance Method Details
#read(str) ⇒ Object
237 238 239 240 241 |
# File 'lib/packetgen/structfu.rb', line 237 def read(str) str = str.to_s self.replace str self end |