Sha256: b439b0f4cfdb66c4280e052b516357e1bc04e270e33f593efcc8db04dc7d5fe8
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
require 'casting/prepared_delegation' module Casting class Delegation attr_reader :prepared_delegation private :prepared_delegation def initialize(delegated_method_name, client) @prepared_delegation = PreparedDelegation.new(delegated_method_name: delegated_method_name, client: client) end def client prepared_delegation.client end def to(object_or_module) prepared_delegation.to(object_or_module) self end def with(*args, &block) prepared_delegation.with(*args, &block) self end def call(*args) prepared_delegation.call(*args) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
casting-0.7.2 | lib/casting/delegation.rb |