Module: Realize::Arrays

Overview

Mix-in that adds some nice common array helpers.

Instance Method Summary collapse

Instance Method Details

#array(value) ⇒ Object



13
14
15
# File 'lib/realize/arrays.rb', line 13

def array(value)
  value.is_a?(Hash) ? [value] : Array(value)
end