module Goodcheck::ArrayHelper

Public Instance Methods

array(obj) click to toggle source
# File lib/goodcheck/array_helper.rb, line 3
def array(obj)
  case obj
  when Hash
    [obj]
  else
    Array(obj)
  end
end