Module: MAbbre::Compatibility
- Defined in:
- lib/mabbre/compatibility.rb
Overview
This is a temporary module that is run when loading MAbbre in order to add patches on some Ruby versions/implementations. After the environment is patched it will be automatically removed.
Constant Summary collapse
- PATH_TO_OBJECT_PATCHES =
Relative path to the directory where patch files for the Object class live.
"mabbre/patch/object_mixin".freeze
- OBJECT_PATCHES =
A hash of patch names for the Object class. Each patch name has a
true
orfalse
value assigned that represents if they need to be applied or not. { :respond_to_missing => !Object.private_instance_methods.map(&:to_sym).include?(:respond_to_missing?) }.freeze