lib/grape/util/hash_stack.rb
def imbue(key, value)
        current = peek[key.to_sym]
        if current.is_a?(Array)
          current.concat(value)
        elsif current.is_a?(Hash)
          current.merge!(value)
        else
          set(key, value)
        end
      end
# Adds addition value into the top hash of the stack
Adds addition value into the top hash of the stack
Adds addition value into the top hash of the stack
def imbue(key, value)
        current = peek[key.to_sym]
        if current.is_a?(Array)
          current.concat(value)
        elsif current.is_a?(Hash)
          current.merge!(value)
        else
          set(key, value)
        end
      end
def imbue ( key , value ) current = peek [ key . to_sym ] if current . is_a? ( Array ) current . concat ( value ) elsif current . is_a? ( Hash ) current . merge! ( value ) else set ( key , value ) end end
Adds addition value into the top hash of the stack
Adds addition value into the top hash of the stack
key
value