Class: Grit::Blame::BlameLine

Inherits:
Object
  • Object
show all
Defined in:
lib/grit/blame.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lineno, oldlineno, commit, line) ⇒ BlameLine

Returns a new instance of BlameLine.



56
57
58
59
60
61
# File 'lib/grit/blame.rb', line 56

def initialize(lineno, oldlineno, commit, line)
  @lineno = lineno
  @oldlineno = oldlineno
  @commit = commit
  @line = line
end

Instance Attribute Details

#commitObject

Returns the value of attribute commit.



55
56
57
# File 'lib/grit/blame.rb', line 55

def commit
  @commit
end

#lineObject

Returns the value of attribute line.



55
56
57
# File 'lib/grit/blame.rb', line 55

def line
  @line
end

#linenoObject

Returns the value of attribute lineno.



55
56
57
# File 'lib/grit/blame.rb', line 55

def lineno
  @lineno
end

#oldlinenoObject

Returns the value of attribute oldlineno.



55
56
57
# File 'lib/grit/blame.rb', line 55

def oldlineno
  @oldlineno
end