Sha256: 7b27d860d8bef473d869a536bd760317d40f920bc2b3da7acb7e12c846a245c5
Contents?: true
Size: 424 Bytes
Versions: 16
Compression:
Stored size: 424 Bytes
Contents
class Object unless defined?(try) def try(method, *options, &block) send(method, *options, &block) end end # These methods are added to all objects so we could call proxy? on anything # and figure if an object is a proxy w/o hitting method_missing or respond_to? def self.proxy? false end def proxy? false end end class NilClass def try(method, *options, &block) nil end end
Version data entries
16 entries across 16 versions & 2 rubygems