Module: Case
- Defined in:
- lib/case.rb
Overview
case.rb - pattern matching for Ruby
Copyright 2008 MenTaLguY <[email protected]>
This library is made available under the same terms as Ruby.
Defined Under Namespace
Modules: Impl Classes: All, Any, Array, Guard, Not, Struct
Constant Summary collapse
- Cmp =
Object.new
Class Method Summary collapse
-
.[](*args) ⇒ Object
Shorthand for Case::Array.[].
- .guard(&predicate) ⇒ Object