Module: WithEase::Forward

Included in:
OpenStruct, ClosedStruct
Defined in:
lib/with_ease/forward.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(into) ⇒ Object



5
# File 'lib/with_ease/forward.rb', line 5

def self.extended(into) = into.extend Forwardable

Instance Method Details

#forward(*methods, to:) ⇒ Object



7
8
9
# File 'lib/with_ease/forward.rb', line 7

def forward *methods, to:
  def_delegators to, *methods
end