Class: GitSniffer::Blob
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#initialize(base, sha) ⇒ Blob
constructor
A new instance of Blob.
- #lazy_name_source ⇒ Object
Methods inherited from Object
create_object, #eql?, #hash, #lazy_content_source, #lazy_type_source, object_type
Methods included from Lazy
Methods included from Hook
Constructor Details
#initialize(base, sha) ⇒ Blob
Returns a new instance of Blob.
7 8 9 |
# File 'lib/git_sniffer/blob.rb', line 7 def initialize(base, sha) super(base, sha) end |
Instance Method Details
#lazy_name_source ⇒ Object
11 12 13 14 |
# File 'lib/git_sniffer/blob.rb', line 11 def lazy_name_source @base.exec("rev-list --all --objects") =~ /#{@sha} (.*)\n/ $1 end |