Class: GitDB::Objects::Blob

Inherits:
Base
  • Object
show all
Defined in:
lib/git-db/objects/blob.rb

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect, #properties, #sha

Constructor Details

This class inherits a constructor from GitDB::Objects::Base

Instance Method Details

#rawObject


3
4
5
# File 'lib/git-db/objects/blob.rb', line 3

def raw
  "blob #{data.length}\000#{data}"
end

#typeObject


7
8
9
# File 'lib/git-db/objects/blob.rb', line 7

def type
  GitDB::OBJ_BLOB
end