Module: PuppetX::Wmflib::ResolveMonkeypatch
- Defined in:
- modules/wmflib/lib/puppet_x/wmflib/monkey_patch.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.apply_patch ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'modules/wmflib/lib/puppet_x/wmflib/monkey_patch.rb', line 9 def self.apply_patch const = begin Kernel.const_get('Resolv::IPv6') rescue NameError # do nothing nil end if const const.prepend(InstanceMethods) end end |