# File lib/pry/hooks.rb, line 20 def self.from_hash(hash) instance = new hash.each do |k, v| instance.add_hook(k, nil, v) end instance end