lib/instructions/conversion/int_from_float.rb in nudge-0.2.6 vs lib/instructions/conversion/int_from_float.rb in nudge-0.2.7

- old
+ new

@@ -1,4 +1,13 @@ +# pops the top +:float+ item; +# pushes a new +:int+ item, +# with value obtained by applying #to_i to the value +# +# *needs:* 1 +:float+ +# +# *pushes:* 1 +:int+ +# + class IntFromFloatInstruction < Instruction def preconditions? needs :float, 1 end def setup