Class: Grit::GitRuby::Blob
- Defined in:
- lib/grit/git-ruby/object.rb,
lib/grit/git-ruby/git_object.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from GitObject
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content, repository = nil) ⇒ Blob
constructor
A new instance of Blob.
- #raw_content ⇒ Object
- #type ⇒ Object
Methods inherited from GitObject
Constructor Details
#initialize(content, repository = nil) ⇒ Blob
Returns a new instance of Blob.
84 85 86 87 |
# File 'lib/grit/git-ruby/object.rb', line 84 def initialize(content, repository=nil) @content = content @repository = repository end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
78 79 80 |
# File 'lib/grit/git-ruby/object.rb', line 78 def content @content end |
Class Method Details
.from_raw(rawobject, repository) ⇒ Object
80 81 82 |
# File 'lib/grit/git-ruby/object.rb', line 80 def self.from_raw(rawobject, repository) new(rawobject.content) end |