Sha256: dd1cdb2ff25868121bad4c842bb63dde67b29dc60ce98c9005aed7a69c5adcaf
Contents?: true
Size: 881 Bytes
Versions: 1
Compression:
Stored size: 881 Bytes
Contents
#encoding: UTF-8 module MPatch Dir.glob(File.join(File.absolute_path(File.dirname(__FILE__)),"mpatch","**","*.{rb,ru}")).each{|e|require e} [ MPatch::Process, MPatch::String, MPatch::Proc, MPatch::YAML, MPatch::Object, MPatch::File, MPatch::Array, MPatch::Integer, MPatch::Hash ].each do |module_name| constant= ::Object name= module_name.to_s.split('::').last constant = constant.const_defined?(name, false) ? constant.const_get(name) : constant.const_missing(name) constant.__send__ :include, module_name end [ MPatch::Random ].each do |module_name| constant= ::Object name= module_name.to_s.split('::').last constant = constant.const_defined?(name, false) ? constant.const_get(name) : constant.const_missing(name) constant.__send__ :extend, module_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mpatch-2.0.1 | lib/mpatch.rb |