module Realize::Arrays
Mix-in that adds some nice common array helpers.
Public Instance Methods
array(value)
click to toggle source
# File lib/realize/arrays.rb, line 13 def array(value) value.is_a?(Hash) ? [value] : Array(value) end