Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/ronin/support/binary/core_ext/array.rb
Instance Method Summary collapse
-
#pack(*arguments, **kwargs) ⇒ String
Packs the Array into a String.
- #pack_original ⇒ Object
Instance Method Details
#pack(*arguments, **kwargs) ⇒ String
Packs the Array into a String.
The desired architecture to pack the data for.
The Operating System (OS) to use.
71 72 73 74 75 76 77 78 |
# File 'lib/ronin/support/binary/core_ext/array.rb', line 71 def pack(*arguments,**kwargs) if (arguments.length == 1 && arguments.first.kind_of?(String)) pack_original(arguments.first) else template = Ronin::Support::Binary::Template.new(arguments,**kwargs) template.pack(*self) end end |
#pack_original ⇒ Object
23 |
# File 'lib/ronin/support/binary/core_ext/array.rb', line 23 alias pack_original pack |