Methods

Class/Module Index [+]

Quicksearch

Chef::Mixin::CheckHelper

Public Instance Methods

set_if_args(thing, arguments) click to toggle source
# File lib/chef/mixin/check_helper.rb, line 21
def set_if_args(thing, arguments)
  raise ArgumentError, "Must call set_if_args with a block!" unless Kernel.block_given?
  if arguments != nil
    yield(arguments)
  else
    thing
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.