Class: Bringit::Blame
- Inherits:
-
Object
- Object
- Bringit::Blame
- Includes:
- EncodingHelper
- Defined in:
- lib/bringit/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.
7 8 9 10 11 12 13 |
# File 'lib/bringit/blame.rb', line 7 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.
5 6 7 |
# File 'lib/bringit/blame.rb', line 5 def blames @blames end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
5 6 7 |
# File 'lib/bringit/blame.rb', line 5 def lines @lines end |