Class: Forthic::EndModuleWord

Inherits:
Word
  • Object
show all
Defined in:
lib/forthic/words/end_module_word.rb

Instance Attribute Summary

Attributes inherited from Word

#location, #name, #string

Instance Method Summary collapse

Methods inherited from Word

#get_location, #set_location

Constructor Details

#initializeEndModuleWord

Returns a new instance of EndModuleWord.



7
8
9
# File 'lib/forthic/words/end_module_word.rb', line 7

def initialize
  super("}")
end

Instance Method Details

#execute(interp) ⇒ Object

Parameters:



12
13
14
# File 'lib/forthic/words/end_module_word.rb', line 12

def execute(interp)
  interp.module_stack_pop
end