Class: Gitlab::Git::Blame
- Inherits:
-
Object
- Object
- Gitlab::Git::Blame
- Includes:
- EncodingHelper
- Defined in:
- lib/gitlab_git/blame.rb
Constant Summary
Constants included from EncodingHelper
EncodingHelper::ENCODING_CONFIDENCE_THRESHOLD
Instance Attribute Summary collapse
-
#blames ⇒ Object
readonly
Returns the value of attribute blames.
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(repository, sha, path) ⇒ Blame
constructor
A new instance of Blame.
Methods included from EncodingHelper
Constructor Details
#initialize(repository, sha, path) ⇒ Blame
Returns a new instance of Blame.
10 11 12 13 14 15 16 |
# File 'lib/gitlab_git/blame.rb', line 10 def initialize(repository, sha, path) @repo = repository @sha = sha @path = path @lines = [] @blames = load_blame end |
Instance Attribute Details
#blames ⇒ Object (readonly)
Returns the value of attribute blames.
8 9 10 |
# File 'lib/gitlab_git/blame.rb', line 8 def blames @blames end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
8 9 10 |
# File 'lib/gitlab_git/blame.rb', line 8 def lines @lines end |