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
Classes: Any, Array, Predicate, Struct, Tuple
Class Method Summary collapse
-
.[](*args) ⇒ Object
Shorthand for Case::Array.[].
Class Method Details
.[](*args) ⇒ Object
Shorthand for Case::Array.[]
67 68 69 |
# File 'lib/case.rb', line 67 def self.[](*args) Array[*args] end |