Class: Mercury::Utils
- Inherits:
-
Object
- Object
- Mercury::Utils
- Defined in:
- lib/mercury/utils.rb
Class Method Summary collapse
Class Method Details
.unsplat(args) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/mercury/utils.rb', line 3 def self.unsplat(args) if args.size == 1 and args.first.is_a?(Array) args.first else args end end |