Class Grit::Blob
In: lib/grit/blob.rb
Parent: Object

Methods

<=>   basename   blame   create   create_initialize   data   inspect   mime_type   size  

Constants

DEFAULT_MIME_TYPE = "text/plain"

Attributes

id  [R] 
mode  [R] 
name  [R] 

Public Class methods

The blame information for the given file at the given commit

Returns Array: [Grit::Commit, Array: [<line>]]

Create an unbaked Blob containing just the specified attributes

  +repo+ is the Repo
  +atts+ is a Hash of instance variable data

Returns Grit::Blob (unbaked)

Public Instance methods

Compares blobs by name

Initializer for Blob.create

  +repo+ is the Repo
  +atts+ is a Hash of instance variable data

Returns Grit::Blob (unbaked)

The binary contents of this blob.

Returns String

Pretty object inspection

The mime type of this file (based on the filename)

Returns String

The size of this blob in bytes

Returns Integer

[Validate]