Sha256: 781d5f6b8c4ecdbdead6ac01dbd97b164ad0d2e50f315bf313036866c810a65c
Contents?: true
Size: 472 Bytes
Versions: 55
Compression:
Stored size: 472 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
55 entries across 55 versions & 1 rubygems