Module: GuerillaPatch
- Defined in:
- lib/guerilla_patch.rb,
lib/guerilla_patch/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.patch(obj, name, &block) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/guerilla_patch.rb', line 5 def patch(obj, name, &block) if Object.respond_to?(:refine, true) refine_obj(obj, name, &block) else obj.class_exec(&block) end obj end |