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

- old
+ new

@@ -6,11 +6,11 @@ # generated based on input layout specifiation, screen data, and top-left # corner cordination. class Screen attr_accessor :layout, :rows, :window, :cursor, :selected - def initialize(session: nil, layout:) - @session = session || RubyJard.current_session + def initialize(layout, session: nil) + @session = session || RubyJard::Session @layout = layout @window = [] @cursor = nil @selected = 0 @rows = []