class HashEasy::BottomlessHash
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/hash_easy/bottomless_hash.rb, line 7 def self.from_hash(hash) new.merge(hash) end
new()
click to toggle source
Calls superclass method
# File lib/hash_easy/bottomless_hash.rb, line 3 def initialize super &-> h, k { h[k] = self.class.new } end