class GitDiffParser::Patches
- GitDiffParser::Patches
- Reference
- Object
Overview
The array of patch
Included Modules
- Enumerable(GitDiffParser::Patch)
Defined in:
git_diff_parser/patches.crConstructors
-
.new(patches : Array(GitDiffParser::Patch))
@return [Patches
]
Class Method Summary
-
.[](*ary)
@return [Patches
] -
.parse(contents)
@param contents [String]
git diff
result -
.scrub_string(line)
@return [String]
Instance Method Summary
-
#each(&)
Must yield this collection's elements to the block.
-
#files
@return [Array
] file path -
#find_patch_by_file(file)
@param file [String] file path
-
#find_patch_by_secure_hash(secure_hash)
@param secure_hash [String] target sha1 hash
-
#secure_hashes
@return [Array
] target sha1 hash -
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Class Method Detail
Instance Method Detail
Must yield this collection's elements to the block.
@param secure_hash [String] target sha1 hash
@return [Patch, nil]
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.