Module: RplLang::Words::Display
Instance Method Summary collapse
Methods included from Types
Instance Method Details
#populate_dictionary ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rpl/words/display.rb', line 8 def populate_dictionary super category = 'Display' @dictionary.add_word!( ['erase'], category, '( -- ) erase display', proc do initialize_frame_buffer end ) @dictionary.add_word!( ['display→', 'display->'], category, '( -- pict ) put current display state on stack', proc do @stack << @frame_buffer # FIXME: RplPict type end ) end |