Class: Object::NilProxy

Inherits:
Object show all
Defined in:
lib/volt/extra_core/try.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args, &block) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/volt/extra_core/try.rb', line 18

def method_missing(method_name, *args, &block)
  if @original.respond_to?(method_name)

  else
    NilProxy.new
  end
end