Class: GitDump::Tree
- Inherits:
-
PathObject
- Object
- PathObject
- GitDump::Tree
- Includes:
- Base
- Defined in:
- lib/git_dump/tree.rb,
lib/git_dump/tree/base.rb,
lib/git_dump/tree/builder.rb
Overview
Interface to git tree
Defined Under Namespace
Modules: Base Classes: Builder
Instance Attribute Summary collapse
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
Attributes inherited from PathObject
Instance Method Summary collapse
-
#initialize(repo, dir, name, sha) ⇒ Tree
constructor
A new instance of Tree.
Methods included from Base
Constructor Details
#initialize(repo, dir, name, sha) ⇒ Tree
Returns a new instance of Tree.
13 14 15 16 17 |
# File 'lib/git_dump/tree.rb', line 13 def initialize(repo, dir, name, sha) super(repo, dir, name) @sha = sha @entries = read_entries end |
Instance Attribute Details
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
12 13 14 |
# File 'lib/git_dump/tree.rb', line 12 def sha @sha end |