Class: Forthic::EndModuleWord
- Defined in:
- lib/forthic/words/end_module_word.rb
Instance Attribute Summary
Attributes inherited from Word
Instance Method Summary collapse
- #execute(interp) ⇒ Object
-
#initialize ⇒ EndModuleWord
constructor
A new instance of EndModuleWord.
Methods inherited from Word
Constructor Details
#initialize ⇒ EndModuleWord
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
12 13 14 |
# File 'lib/forthic/words/end_module_word.rb', line 12 def execute(interp) interp.module_stack_pop end |