Module: Redbreast::Helper::HashHelper

Included in:
Command::Setup
Defined in:
lib/redbreast/helpers/hash.rb

Overview

Module used for creating compact dictionaries

Instance Method Summary collapse

Instance Method Details

#compact(dictionary) ⇒ Object



5
6
7
# File 'lib/redbreast/helpers/hash.rb', line 5

def compact(dictionary)
  dictionary.delete_if { |_k, v| v.nil? }
end