Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/dnn/core/monkey_patch.rb

Instance Method Summary collapse

Instance Method Details

#dnn__to_hObject



79
# File 'lib/dnn/core/monkey_patch.rb', line 79

alias dnn__to_h to_h

#to_h(&block) ⇒ Object



80
81
82
83
# File 'lib/dnn/core/monkey_patch.rb', line 80

def to_h(&block)
  dnn__to_h unless block
  map(&block).to_h
end