Method: Gash::Tree#replace

Defined in:
lib/gash.rb

#replace(hash) ⇒ Object



287
288
289
290
291
292
293
294
# File 'lib/gash.rb', line 287

def replace(hash)
  if hash.is_a?(Gash::Tree)
    super
  else
    clear
    merge!(hash)
  end
end