class RainforestRubyRuntime::NilDelegator
Public Class Methods
new(object)
click to toggle source
# File lib/rainforest_ruby_runtime/nil_delegator.rb, line 3 def initialize(object) @object = object end
Public Instance Methods
method_missing(meth, *args, &block)
click to toggle source
# File lib/rainforest_ruby_runtime/nil_delegator.rb, line 7 def method_missing(meth, *args, &block) if @object.respond_to?(meth) @object.public_send(meth, *args, &block) end end