On Tue, Apr 6, 2010 at 9:01 PM, Paul Lathrop <[email protected]> wrote: > I wouldn't ask, but I'm not sure how to Google this specific type of question. > > I'm looking at lib/puppet/util.rb at the execute function. The > function definition looks like: > > def execute(command, arguments = {:failonfail => true, :combine => true}) > > What's going on there with that arguments = {} stuff? I've never > encountered this before. >
Default argument values, which happens to be a hash (you probably knew the latter). Steven -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
