class PM::HelpWindow

Constants

CONTENTS

Attributes

text[R]

Public Class Methods

new(rows, cols, row, col) click to toggle source
Calls superclass method
# File lib/patchmaster/curses/help_window.rb, line 12
def initialize(rows, cols, row, col)
  super(rows, cols, row, col, nil)
  @text = IO.read(CONTENTS)
  @title = 'PatchMaster Help'
end

Public Instance Methods

draw() click to toggle source
Calls superclass method
# File lib/patchmaster/curses/help_window.rb, line 18
def draw
  super
  i = 0
  @text.each_line do |line|
    @win.setpos(i+2, 3)
    @win.addstr(make_fit(line.chomp))
    i += 1
  end
end