Module: Roar::JSON::HashUtils Private

Defined in:
lib/roar/json/json_api.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.store_if_any(hash, key, value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



154
155
156
# File 'lib/roar/json/json_api.rb', line 154

def store_if_any(hash, key, value)
  hash[key] = value if value && value.any?
end