class Flumtter::Window::Buf::Element
Attributes
object[R]
Public Class Methods
new(object, index)
click to toggle source
# File lib/flumtter/app/core/windows/buf_window.rb, line 63 def initialize(object, index) @object = object @index = index end
Public Instance Methods
element()
click to toggle source
# File lib/flumtter/app/core/windows/buf_window.rb, line 68 def element @text ||= <<~EOF #{header} #{user} #{body.split_num(width - 1)} #{footer} EOF end
width()
click to toggle source
# File lib/flumtter/app/core/windows/buf_window.rb, line 77 def width Terminal.x-2 end
Private Instance Methods
header()
click to toggle source
# File lib/flumtter/app/core/windows/buf_window.rb, line 82 def header "#{@index} ".ljust(width, ?-) end