module Startback::Support
Public Class Methods
deep_merge(h1, h2)
click to toggle source
# File lib/startback/support.rb, line 8 def deep_merge(h1, h2) h1.merge(h2){|k,v1,v2| v1.is_a?(Hash) && v2.is_a?(Hash) ? deep_merge(v1, v2) : v2 } end
Public Instance Methods
logger()
click to toggle source
# File lib/startback/support.rb, line 4 def logger Startback::LOGGER end
Private Instance Methods
deep_merge(h1, h2)
click to toggle source
# File lib/startback/support.rb, line 8 def deep_merge(h1, h2) h1.merge(h2){|k,v1,v2| v1.is_a?(Hash) && v2.is_a?(Hash) ? deep_merge(v1, v2) : v2 } end