Module: Goodcheck::ArrayHelper

Included in:
ConfigLoader
Defined in:
lib/goodcheck/array_helper.rb

Instance Method Summary collapse

Instance Method Details

#array(obj) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/goodcheck/array_helper.rb', line 3

def array(obj)
  case obj
  when Hash
    [obj]
  else
    Array(obj)
  end
end