class Rfd::HeaderLeftWindow
Public Class Methods
new()
click to toggle source
Calls superclass method
Rfd::Window::new
# File lib/rfd/windows.rb, line 28 def initialize super maxy: 3, maxx: Curses.cols - 32, begy: 1, begx: 1 end
Public Instance Methods
draw_current_file_info(current_file)
click to toggle source
# File lib/rfd/windows.rb, line 37 def draw_current_file_info(current_file) draw_current_filename current_file.full_display_name draw_stat current_file noutrefresh end
draw_path_and_page_number(path: nil, current: 1, total: nil)
click to toggle source
# File lib/rfd/windows.rb, line 32 def draw_path_and_page_number(path: nil, current: 1, total: nil) writeln 0, %Q[Page: #{"#{current}/ #{total}".ljust(11)} Path: #{path}] noutrefresh end
Private Instance Methods
draw_current_filename(current_file_name)
click to toggle source
# File lib/rfd/windows.rb, line 44 def draw_current_filename(current_file_name) writeln 1, "File: #{current_file_name}" end
draw_stat(item)
click to toggle source
# File lib/rfd/windows.rb, line 48 def draw_stat(item) writeln 2, " #{item.size_or_dir.ljust(13)}#{item.mtime} #{item.mode}" end