Method: BinStruct::Int32n#initialize

Defined in:
lib/bin_struct/int.rb

#initialize(options = {}) ⇒ Int32n

Returns a new instance of Int32n.

Parameters:

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

Options Hash (options):

  • :value (Integer, nil)


354
355
356
357
# File 'lib/bin_struct/int.rb', line 354

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