Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/packetfu/structfu.rb

Instance Method Summary collapse

Instance Method Details

#force_binary(str) ⇒ Object

Monkeypatch for Struct to include some string safety – anything that uses Struct is going to presume binary strings anyway.



316
317
318
# File 'lib/packetfu/structfu.rb', line 316

def force_binary(str)
  PacketFu.force_binary(str)
end