class WindowTerminal::Line
A class which renders a simple horizontal line on a Window
.
Attributes
y[R]
Public Class Methods
new(y)
click to toggle source
Initializes a Line
object.
# File lib/accu-window.rb, line 349 def initialize(y) @y = y end
Public Instance Methods
render_line(line,width,*args)
click to toggle source
Renders on the passed line and returns the modified line.
# File lib/accu-window.rb, line 355 def render_line(line,width,*args) line.gsub(" ","-") end