Class: Grit::GitRuby::Blob
- Inherits:
-
GitObject
- Object
- GitObject
- Grit::GitRuby::Blob
- Defined in:
- lib/grit/git-ruby/git_object.rb
Instance Attribute Summary (collapse)
-
- (Object) content
Returns the value of attribute content.
Attributes inherited from GitObject
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (Blob) initialize(content, repository = nil)
constructor
A new instance of Blob.
- - (Object) raw_content
- - (Object) type
Methods inherited from GitObject
Constructor Details
- (Blob) initialize(content, repository = nil)
A new instance of Blob
95 96 97 98 |
# File 'lib/grit/git-ruby/git_object.rb', line 95 def initialize(content, repository=nil) @content = content @repository = repository end |
Instance Attribute Details
- (Object) content
Returns the value of attribute content
89 90 91 |
# File 'lib/grit/git-ruby/git_object.rb', line 89 def content @content end |
Class Method Details
+ (Object) from_raw(rawobject, repository)
91 92 93 |
# File 'lib/grit/git-ruby/git_object.rb', line 91 def self.from_raw(rawobject, repository) new(rawobject.content) end |
Instance Method Details
- (Object) raw_content
104 105 106 |
# File 'lib/grit/git-ruby/git_object.rb', line 104 def raw_content @content end |
- (Object) type
100 101 102 |
# File 'lib/grit/git-ruby/git_object.rb', line 100 def type :blob end |