Sha256: 2c5902b0f71d5b5fecf0d73ced3d22a95ab67081f4d1436c170145f7de0e12c6
Contents?: true
Size: 302 Bytes
Versions: 47
Compression:
Stored size: 302 Bytes
Contents
module Backports # Safe alias_method that will only alias if the source exists and destination doesn't def self.alias_method(mod, new_name, old_name) mod.instance_eval do alias_method new_name, old_name end if mod.method_defined?(old_name) && !mod.method_defined?(new_name) end end
Version data entries
47 entries across 47 versions & 4 rubygems