class
Agate::SubmoduleCollection
- Agate::SubmoduleCollection
- Reference
- Object
Overview
A collection of submodule names in a repository.
NOTE Does not include Enumerable because the C callback used by git_submodule_foreach is incompatible with Crystal's yield-through semantics (Box closure + C callback). Provides #each(&block) and #to_a instead.
Defined in:
agate/submodule.crInstance Method Summary
-
#[](name : String) : Submodule
Looks up a submodule by name.
-
#[]?(name : String) : Submodule | Nil
Looks up a submodule by name, returning nil if not found.
-
#each(&block : String -> ) : Nil
Iterates over all submodule names.
-
#to_a : Array(String)
Returns all submodule names as an array.
Instance Method Detail
Looks up a submodule by name, returning nil if not found.