class Git::Object::AbstractObject::Blob
A Git blob object
Public Class Methods
Source
# File lib/git/object.rb, line 275 def initialize(base, sha, mode = nil) super(base, sha) @mode = mode end
Creates a blob object wrapper
@param base [Git::Repository] the repository used to query object data
@param sha [String] the blob SHA or object expression
@param mode [String, nil] the file mode from tree listings
Calls superclass method
Git::Object::AbstractObject::new
Public Instance Methods
Source
# File lib/git/object.rb, line 284 def blob? true end
Returns whether this object is a blob
@return [Boolean] ‘true`