Sha256: b66611c3ff4966ff147c54927300b7337853673a5f327aa338dfc32b3416a377
Contents?: true
Size: 359 Bytes
Versions: 6
Compression:
Stored size: 359 Bytes
Contents
module Kernel # Send only to public methods. #-- # Which implementation is faster? #++ def object_send(name,*args,&blk) #instance_eval "self.#{name}(*args)" if respond_to?(name) send(name,*args,&blk) elsif respond_to?(:method_missing) method_missing(name,*args,&blk) else raise NoMethodError end end end
Version data entries
6 entries across 6 versions & 1 rubygems