Module: PuppetX::Voxpupuli::Utils
- Defined in:
- lib/puppet_x/voxpupuli/utils.rb
Class Method Summary collapse
Class Method Details
.try(catch = ArgumentError, nope = false) ⇒ Object
4 5 6 7 8 |
# File 'lib/puppet_x/voxpupuli/utils.rb', line 4 def self.try(catch = ArgumentError, nope = false) yield rescue catch nope end |