Class: Gitlab::Git::BlameLine
- Inherits:
-
Object
- Object
- Gitlab::Git::BlameLine
- Defined in:
- lib/gitlab/git/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.
-
#previous_path ⇒ Object
Returns the value of attribute previous_path.
-
#span ⇒ Object
Returns the value of attribute span.
Instance Method Summary collapse
-
#initialize(lineno, oldlineno, commit, line, previous_path, span) ⇒ BlameLine
constructor
A new instance of BlameLine.
Constructor Details
#initialize(lineno, oldlineno, commit, line, previous_path, span) ⇒ BlameLine
Returns a new instance of BlameLine.
93 94 95 96 97 98 99 100 |
# File 'lib/gitlab/git/blame.rb', line 93 def initialize(lineno, oldlineno, commit, line, previous_path, span) @lineno = lineno @oldlineno = oldlineno @commit = commit @line = line @previous_path = previous_path @span = span end |
Instance Attribute Details
#commit ⇒ Object
Returns the value of attribute commit.
91 92 93 |
# File 'lib/gitlab/git/blame.rb', line 91 def commit @commit end |
#line ⇒ Object
Returns the value of attribute line.
91 92 93 |
# File 'lib/gitlab/git/blame.rb', line 91 def line @line end |
#lineno ⇒ Object
Returns the value of attribute lineno.
91 92 93 |
# File 'lib/gitlab/git/blame.rb', line 91 def lineno @lineno end |
#oldlineno ⇒ Object
Returns the value of attribute oldlineno.
91 92 93 |
# File 'lib/gitlab/git/blame.rb', line 91 def oldlineno @oldlineno end |
#previous_path ⇒ Object
Returns the value of attribute previous_path.
91 92 93 |
# File 'lib/gitlab/git/blame.rb', line 91 def previous_path @previous_path end |
#span ⇒ Object
Returns the value of attribute span.
91 92 93 |
# File 'lib/gitlab/git/blame.rb', line 91 def span @span end |