module Roar::JSON::HashUtils
@api private
Public Class Methods
store_if_any(hash, key, value)
click to toggle source
# File lib/roar/json/json_api.rb, line 154 def store_if_any(hash, key, value) hash[key] = value if value && value.any? end
Private Instance Methods
store_if_any(hash, key, value)
click to toggle source
# File lib/roar/json/json_api.rb, line 154 def store_if_any(hash, key, value) hash[key] = value if value && value.any? end