Method: BinStruct::Int32le#initialize

Defined in:
lib/bin_struct/int.rb

#initialize(options = {}) ⇒ Int32le

Returns a new instance of Int32le.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :value (Integer, nil)


341
342
343
344
# File 'lib/bin_struct/int.rb', line 341

def initialize(options = {})
  opts = { value: options[:value], endian: :little }
  super(opts)
end