module Mixlib::Config

Public Instance Methods

method_missing(method, *args, &block) click to toggle source

Override Mixlib::Config#method_missing so we can do things like this:

@example define a nested group without use config_context

projects do
  branch_flow %w[release master]
  project-one do
    branch_flow %w[integration release master]
  end
end
# File lib/gem_ext/mixlib.rb, line 15
def method_missing(method, *args, &block)
  if block_given?
    config_context(method, &block)
  else
    old_method_missing(method, *args)
  end
end
Also aliased as: old_method_missing
old_method_missing(method, *args, &block)
Alias for: method_missing