Module: Qo
- Extended by:
- Exceptions, PublicApi
- Defined in:
- lib/qo.rb,
lib/qo/version.rb,
lib/qo/exceptions.rb,
lib/qo/public_api.rb,
lib/qo/branches/branch.rb,
lib/qo/matchers/matcher.rb,
lib/qo/branches/branches.rb,
lib/qo/branches/else_branch.rb,
lib/qo/branches/when_branch.rb,
lib/qo/branches/error_branch.rb,
lib/qo/branches/failure_branch.rb,
lib/qo/branches/success_branch.rb,
lib/qo/destructurers/destructurer.rb,
lib/qo/pattern_matchers/branching.rb,
lib/qo/destructurers/destructurers.rb,
lib/qo/branches/monadic_else_branch.rb,
lib/qo/branches/monadic_when_branch.rb,
lib/qo/pattern_matchers/pattern_match.rb,
lib/qo/pattern_matchers/pattern_matchers.rb,
lib/qo/pattern_matchers/result_pattern_match.rb
Defined Under Namespace
Modules: Branches, Destructurers, Exceptions, Matchers, PatternMatchers, PublicApi
Constant Summary
- IDENTITY =
Identity function that returns its argument directly. Argument name is important, as it will extract the literal identity of the object in the case of a non-destructured match, and the object itself in the case of a destructured one.
-> itself { itself }
- VERSION =
'0.99.0'
Method Summary
Methods included from PublicApi
and, case, create_branch, create_pattern_match, match, not, or, result_case, result_match