Sha256: c54e9a243e1d116d296620e063a3d5d105c70b1ec3aa41fb5818609187f92a72

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

# pops the top 2 items of the +:float+ stack, and one +:bool+;
# returns the top +:float+ item if the +:bool+ is +false+, the second one if +true+
#
# *needs:* 2 +:float+, 1 +:bool+
#
# *pushes:* 1 +:float+
#

class FloatIfInstruction < Instruction
  
  include IfInstruction
  
  def initialize(context)
    super(context, :float)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nudge-0.2.9 lib/instructions/float/float_if.rb
nudge-0.2.8 lib/instructions/float/float_if.rb
nudge-0.2.7 lib/instructions/float/float_if.rb