Skip to content

Commit b5b2851

Browse files
committed
Add '!' postfix to methods that actually print the screen
1 parent 68823b2 commit b5b2851

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/debug/local.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def store_tui_data(data)
137137
def puts str = nil
138138
@screen.draw_windows(@ui_data)
139139
@screen.draw_repl(str)
140-
@screen.render
140+
@screen.render!
141141
end
142142

143143
def windows_metadata
@@ -160,9 +160,9 @@ def initialize(width, height, windows)
160160
@windows << @repl
161161
end
162162

163-
def render
163+
def render!
164164
clear_screen!
165-
@windows.each { |w| w.render($stdout) }
165+
@windows.each { |w| w.render!($stdout) }
166166
end
167167

168168
def draw_windows(data)
@@ -246,13 +246,13 @@ def draw(data)
246246
end
247247
end
248248

249-
def render(io)
249+
def render!(io)
250250
@lines.each do |line|
251251
io.puts(line)
252252
end
253253
end
254254

255-
def clear!
255+
def clear
256256
@lines.clear
257257
end
258258
end
@@ -266,7 +266,7 @@ def initialize(name, width, height)
266266
@content_height = @height - 2
267267
end
268268

269-
def render(io)
269+
def render!(io)
270270
io.puts(top_border)
271271

272272
@content_height.times do |i|
@@ -282,7 +282,7 @@ def render(io)
282282

283283
def draw(data)
284284
# framed windows doesn't preserve data
285-
clear!
285+
clear
286286
super
287287
end
288288

0 commit comments

Comments
 (0)