module Construi::Config::WrappedYaml

Public Instance Methods

get(key, default = nil) click to toggle source
# File lib/construi/config.rb, line 14
def get(key, default = nil)
  key?(key) ? yaml[key.to_s] : default
end
key?(key) click to toggle source
# File lib/construi/config.rb, line 10
def key?(key)
  yaml.is_a?(Hash) && yaml.key?(key.to_s)
end
parent() click to toggle source
# File lib/construi/config.rb, line 6
def parent
  nil
end
with_parent(or_else = nil) { |parent| ... } click to toggle source
# File lib/construi/config.rb, line 18
def with_parent(or_else = nil)
  parent ? yield(parent) : or_else
end