Class: Git::Object::Blob
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- Git::Object::Blob
- Defined in:
- lib/git/object.rb
Instance Attribute Summary
Attributes inherited from AbstractObject
#mode, #objectish, #size, #type
Instance Method Summary collapse
- #blob? ⇒ Boolean
-
#initialize(base, sha, mode = nil) ⇒ Blob
constructor
A new instance of Blob.
Methods inherited from AbstractObject
#archive, #commit?, #contents, #contents_array, #diff, #grep, #log, #sha, #tag?, #to_s, #tree?
Constructor Details
#initialize(base, sha, mode = nil) ⇒ Blob
Returns a new instance of Blob.
82 83 84 85 |
# File 'lib/git/object.rb', line 82 def initialize(base, sha, mode = nil) super(base, sha) @mode = mode end |
Instance Method Details
#blob? ⇒ Boolean
87 88 89 |
# File 'lib/git/object.rb', line 87 def blob? true end |