Class: Forthic::ModuleMemoBangWord
- Defined in:
- lib/forthic/words/module_memo_bang_word.rb
Instance Attribute Summary collapse
-
#memo_word ⇒ Object
Returns the value of attribute memo_word.
Attributes inherited from Word
Instance Method Summary collapse
- #execute(interp) ⇒ Object
-
#initialize(memo_word) ⇒ ModuleMemoBangWord
constructor
A new instance of ModuleMemoBangWord.
Methods inherited from Word
Constructor Details
#initialize(memo_word) ⇒ ModuleMemoBangWord
Returns a new instance of ModuleMemoBangWord.
11 12 13 14 |
# File 'lib/forthic/words/module_memo_bang_word.rb', line 11 def initialize(memo_word) super("#{memo_word.name}!") @memo_word = memo_word end |
Instance Attribute Details
#memo_word ⇒ Object
Returns the value of attribute memo_word.
8 9 10 |
# File 'lib/forthic/words/module_memo_bang_word.rb', line 8 def memo_word @memo_word end |
Instance Method Details
#execute(interp) ⇒ Object
17 18 19 |
# File 'lib/forthic/words/module_memo_bang_word.rb', line 17 def execute(interp) @memo_word.refresh(interp) end |