class Neb::Configuration

Constants

DEFAULTS

Public Class Methods

new() click to toggle source
# File lib/neb/configuration.rb, line 19
def initialize
  clear
end

Public Instance Methods

clear() click to toggle source
# File lib/neb/configuration.rb, line 23
def clear
  @hash = DEFAULTS.dup
end
merge(hash) click to toggle source
# File lib/neb/configuration.rb, line 32
def merge(hash)
  instance = self.class.new
  instance.merge!(to_hash)
  instance.merge!(hash)
  instance
end
merge!(hash) click to toggle source
# File lib/neb/configuration.rb, line 27
def merge!(hash)
  hash = hash.dup
  @hash = @hash.deep_merge(hash)
end