From edd0884f9df5a787d99ce1bb9986ead24be94ad1 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 30 Aug 2022 13:37:34 +0200 Subject: [PATCH] s/display/frame_buffer/g Signed-off-by: Gwenhael Le Moine --- lib/rpl/interpreter.rb | 8 ++++---- lib/rpl/words/display.rb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/rpl/interpreter.rb b/lib/rpl/interpreter.rb index a0e8ec0..ba5483e 100644 --- a/lib/rpl/interpreter.rb +++ b/lib/rpl/interpreter.rb @@ -30,7 +30,7 @@ class Interpreter include Types attr_reader :stack, - :display, + :frame_buffer, :dictionary, :version @@ -42,11 +42,11 @@ class Interpreter @dictionary = dictionary @stack = stack - initialize_display + initialize_frame_buffer end - def initialize_display - @display = BitArray.new + def initialize_frame_buffer + @frame_buffer = BitArray.new end def run( input ) diff --git a/lib/rpl/words/display.rb b/lib/rpl/words/display.rb index b4c460e..582d23d 100644 --- a/lib/rpl/words/display.rb +++ b/lib/rpl/words/display.rb @@ -12,14 +12,14 @@ module RplLang 'Display', '( -- ) erase display', proc do - initialize_display + initialize_frame_buffer end ) @dictionary.add_word( ['display→', 'display->'], 'Display', '( -- pict ) put current display state on stack', proc do - @stack << @display # FIXME: RplPict type + @stack << @frame_buffer # FIXME: RplPict type end ) end end