Class: Python::Pickle::Instructions::Float

Inherits:
Python::Pickle::Instruction show all
Includes:
HasValue
Defined in:
lib/python/pickle/instructions/float.rb

Instance Attribute Summary

Attributes included from HasValue

#value

Attributes inherited from Python::Pickle::Instruction

#opcode

Instance Method Summary collapse

Methods included from HasValue

#==, #to_s

Methods inherited from Python::Pickle::Instruction

#==, #inspect, #to_s

Constructor Details

#initialize(value) ⇒ Float

Initializes the FLOAT instruction.

Parameters:

  • value (Float)

    The FLOAT instruction's value.



17
18
19
# File 'lib/python/pickle/instructions/float.rb', line 17

def initialize(value)
  super(:FLOAT,value)
end