Class: Grit::Blame::BlameLine
- Inherits:
-
Object
- Object
- Grit::Blame::BlameLine
- Defined in:
- lib/grit/blame.rb
Instance Attribute Summary collapse
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#line ⇒ Object
Returns the value of attribute line.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#oldlineno ⇒ Object
Returns the value of attribute oldlineno.
Instance Method Summary collapse
-
#initialize(lineno, oldlineno, commit, line) ⇒ BlameLine
constructor
A new instance of BlameLine.
Constructor Details
#initialize(lineno, oldlineno, commit, line) ⇒ BlameLine
Returns a new instance of BlameLine.
51 52 53 54 55 56 |
# File 'lib/grit/blame.rb', line 51 def initialize(lineno, oldlineno, commit, line) @lineno = lineno @oldlineno = oldlineno @commit = commit @line = line end |
Instance Attribute Details
#commit ⇒ Object
Returns the value of attribute commit.
50 51 52 |
# File 'lib/grit/blame.rb', line 50 def commit @commit end |
#line ⇒ Object
Returns the value of attribute line.
50 51 52 |
# File 'lib/grit/blame.rb', line 50 def line @line end |
#lineno ⇒ Object
Returns the value of attribute lineno.
50 51 52 |
# File 'lib/grit/blame.rb', line 50 def lineno @lineno end |
#oldlineno ⇒ Object
Returns the value of attribute oldlineno.
50 51 52 |
# File 'lib/grit/blame.rb', line 50 def oldlineno @oldlineno end |