Module: Kernel
- Includes:
- MultiCase::API
- Defined in:
- lib/multi_case/core_ext.rb
Overview
Makes multi_case a global method available at main:Object as well as inside any other class. BEWARE, this might make some modules behave unexpectedly because of name collision.
Instance Method Summary collapse
Instance Method Details
#_multi_case ⇒ Object
10 |
# File 'lib/multi_case/core_ext.rb', line 10 alias_method :_multi_case, :multi_case |
#multi_case(x, y, &block) ⇒ Object
12 13 14 |
# File 'lib/multi_case/core_ext.rb', line 12 def multi_case(x, y, &block) _multi_case(x, y, &block) end |