Class: Whitespace::ISA::Discard

Inherits:
Instruction show all
Defined in:
lib/whitespace/instructions/stack_manipulation/discard.rb

Instance Attribute Summary

Attributes inherited from Instruction

#vm

Instance Method Summary collapse

Methods inherited from Instruction

#initialize

Constructor Details

This class inherits a constructor from Whitespace::ISA::Instruction

Instance Method Details

#executeObject



3
4
5
# File 'lib/whitespace/instructions/stack_manipulation/discard.rb', line 3

def execute
  vm.vstack.pop
end