Module: EacRubyUtils::PatchModule
- Included in:
- EacRubyUtils
- Defined in:
- lib/eac_ruby_utils/patch_module.rb
Class Method Summary collapse
Class Method Details
.patch_module(target, patch) ⇒ Object
14 15 16 17 18 |
# File 'lib/eac_ruby_utils/patch_module.rb', line 14 def patch_module(target, patch) return if target.included_modules.include?(patch) target.send(:include, patch) end |