First of all, it requires Ruby v2.4.2+ to run.
Said that, install the follow dependencies:
github_changelog_generator
$ [sudo] gem install github_changelog_generator
First of all, it requires Ruby v2.4.2+ to run.
Said that, install the follow dependencies:
github_changelog_generator
$ [sudo] gem install github_changelog_generator
class Result<T> private constructor(private val result: Any?) { | |
// discovery | |
val isFailure: Boolean get() = result is Failure | |
val isSuccess: Boolean get() = result !is Failure | |
// value retrieval | |
fun get(): T = | |
if (result is Failure) throw result.exception |