Module: GitDump::Version::Base
- Included in:
- GitDump::Version, Builder
- Defined in:
- lib/git_dump/version/base.rb
Overview
Common methods in Version and Builder
Instance Method Summary collapse
-
#[](path) ⇒ Object
Retrive tree or entry at path, return nil if there is nothing at path.
-
#each(&block) ⇒ Object
Iterate over every tree/entry at root level.
-
#each_recursive(&block) ⇒ Object
Iterate over all entries recursively.
Instance Method Details
#[](path) ⇒ Object
Retrive tree or entry at path, return nil if there is nothing at path
8 9 10 |
# File 'lib/git_dump/version/base.rb', line 8 def [](path) tree[path] end |
#each(&block) ⇒ Object
Iterate over every tree/entry at root level
13 14 15 |
# File 'lib/git_dump/version/base.rb', line 13 def each(&block) tree.each(&block) end |
#each_recursive(&block) ⇒ Object
Iterate over all entries recursively
18 19 20 |
# File 'lib/git_dump/version/base.rb', line 18 def each_recursive(&block) tree.each_recursive(&block) end |