class Array
Public Instance Methods
to_smash(*args)
click to toggle source
Iterates searching for Hash
types to auto convert
@return [Array]
# File lib/bogo/smash.rb, line 209 def to_smash(*args) self.map do |item| if(item.respond_to?(:to_smash)) item.to_smash(*args) else args.include?(:freeze) ? item.freeze : item end end end