lib/ruby_jard/screen.rb in ruby_jard-0.2.2 vs lib/ruby_jard/screen.rb in ruby_jard-0.2.3

- old
+ new

@@ -4,21 +4,19 @@ ## # A screen is a unit of information drawing on the terminal. Each screen is # generated based on input layout specifiation, screen data, and top-left # corner cordination. class Screen - attr_accessor :layout, :rows, :color_scheme, :window, :cursor, :selected + attr_accessor :layout, :rows, :window, :cursor, :selected - def initialize(session: nil, layout:, color_scheme:) + def initialize(session: nil, layout:) @session = session || RubyJard.current_session @layout = layout - @color_scheme = color_scheme @window = [] @cursor = nil @selected = 0 @rows = [] - @need_to_render = true end def move_down; end def move_up; end @@ -29,16 +27,8 @@ def click(relative_x, relative_y); end def build raise NotImplementedError, "#{self.class} should implement this method." - end - - def need_to_render? - @need_to_render == true - end - - def mark_rendered! - @need_to_render = false end end end