Skip to content
instance method

SingleForwardable#single_delegate

(::Hash[::Symbol | ::Array[::Symbol], ::Symbol] hash) -> void
delegate method => accessor delegate [method, method, ...] => accessor

Takes a hash as its argument. The key is a symbol or an array of symbols. These symbols correspond to method names. The value is the accessor to which the methods will be delegated.

See also #delegate #def_single_delegators also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0