Module: MultiGit::Object
- Extended by:
- Utils::AbstractMethods
- Included in:
- Blob, Commit, GitBackend::Object, JGitBackend::Object, RuggedBackend::Object, Tree, TreeEntry
- Defined in:
- lib/multi_git/object.rb
Overview
This is a base-module for all objects.
Instance Attribute Summary collapse
- #oid ⇒ String readonly
- #repository ⇒ Repository readonly
Instance Method Summary collapse
-
#bytesize ⇒ Integer
abstract
Size in bytes.
-
#content ⇒ String
abstract
Returns an String containing the content of this object.
-
#to_builder ⇒ MultiGit::Builder
abstract
Creates a builder which contains everything this object contains.
-
#to_io ⇒ IO
abstract
Returns an IO with the content of this object.
Methods included from Utils::AbstractMethods
Instance Attribute Details
#oid ⇒ String (readonly)
13 14 15 |
# File 'lib/multi_git/object.rb', line 13 def oid @oid end |
#repository ⇒ Repository (readonly)
10 11 12 |
# File 'lib/multi_git/object.rb', line 10 def repository @repository end |
Instance Method Details
#bytesize ⇒ Integer
This method is abstract.
Returns size in bytes.
57 |
# File 'lib/multi_git/object.rb', line 57 abstract :bytesize |
#content ⇒ String
This method is abstract.
Returns an String containing the content of this object.
46 |
# File 'lib/multi_git/object.rb', line 46 abstract :content |
#to_builder ⇒ MultiGit::Builder
This method is abstract.
Creates a builder which contains everything this object contains.
40 |
# File 'lib/multi_git/object.rb', line 40 abstract :to_builder |
#to_io ⇒ IO
This method is abstract.
Returns an IO with the content of this object.
52 |
# File 'lib/multi_git/object.rb', line 52 abstract :to_io |