Sha256: cad60162197e841d61e7ea0f6e11735fcfff620b242f6341a1f3f4911a4785e3
Contents?: true
Size: 441 Bytes
Versions: 38
Compression:
Stored size: 441 Bytes
Contents
class Object class TryProxy def initialize(original) @original = original end def method_missing(method_name, *args, &block) if @original.respond_to?(method_name) else NilProxy.new end end end class NilProxy def method_missing(method_name, *args, &block) if @original.respond_to?(method_name) else NilProxy.new end end end def try end end
Version data entries
38 entries across 38 versions & 1 rubygems