Skip to Content Skip to Search
Methods
#
N

Attributes

[R] __getobj__
[R] delegate_dc_obj

Class Public methods

new(delegated_obj)

# File activesupport/lib/active_support/delegation.rb, line 27
def initialize(delegated_obj)
  @delegate_dc_obj = delegated_obj
end

Instance Public methods

__setobj__(obj)

# File activesupport/lib/active_support/delegation.rb, line 31
def __setobj__(obj)
  __raise__ ::ArgumentError, "cannot delegate to self" if equal?(obj)
  @delegate_dc_obj = obj
end