Class: SimpleDelegator

Inherits:
Delegator show all
Defined in:
opal/stdlib/delegate.rb

Instance Method Summary collapse

Methods inherited from Delegator

#initialize, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from Delegator

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Delegator

Instance Method Details

#__getobj__Object



26
27
28
# File 'opal/stdlib/delegate.rb', line 26

def __getobj__
  @delegate_sd_obj
end

#__setobj__(obj) ⇒ Object



30
31
32
# File 'opal/stdlib/delegate.rb', line 30

def __setobj__(obj)
  @delegate_sd_obj = obj
end