Sha256: 5748474d43014f01bb1b405e3eedad1d0ea64a1207457b9ee4f100a0efc00fb5
Contents?: true
Size: 405 Bytes
Versions: 8
Compression:
Stored size: 405 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(*args) nil end end
Version data entries
8 entries across 8 versions & 1 rubygems