Class: Git::Object::Blob

Inherits:
AbstractObject show all
Defined in:
lib/git/object.rb

Overview

A Git blob object

Instance Attribute Summary

Attributes inherited from AbstractObject

#mode, #objectish, #size, #type

Instance Method Summary collapse

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.



137
138
139
140
# File 'lib/git/object.rb', line 137

def initialize(base, sha, mode = nil)
  super(base, sha)
  @mode = mode
end

Instance Method Details

#blob?Boolean

Returns:

  • (Boolean)


142
143
144
# File 'lib/git/object.rb', line 142

def blob?
  true
end