class GitHelpers::GitDiffDebug

Public Class Methods

new(*args,&b) click to toggle source
Calls superclass method GitHelpers::GitDiff::new
# File lib/git_helpers/diff.rb, line 393
def initialize(*args,&b)
        super
        @cols=`tput cols`.to_i
end

Public Instance Methods

center(msg) click to toggle source
# File lib/git_helpers/diff.rb, line 398
def center(msg)
        msg.center(@cols,'─')
end
handle_line() click to toggle source
Calls superclass method GitHelpers::GitDiff#handle_line
# File lib/git_helpers/diff.rb, line 402
def handle_line
        super
        output_line "#{@mode}: #{@orig_line}"
        #p @hunk if @mode==:hunk
end