Module: Pry::Config::Behavior::Builder

Defined in:
lib/pry/config/behavior.rb

Instance Method Summary collapse

Instance Method Details

#from_hash(hash, default = nil) ⇒ Object



7
8
9
10
11
# File 'lib/pry/config/behavior.rb', line 7

def from_hash(hash, default = nil)
  new(default).tap do |config|
    config.merge!(hash)
  end
end