Sha256: 7615366a95c9770379b2ea444e1d612bc327b6164cc45a2ee73c19f065bf8065

Contents?: true

Size: 643 Bytes

Versions: 61

Compression:

Stored size: 643 Bytes

Contents

require 'docile/fallback_context_proxy'

module Docile
  # @api private
  #
  # Operates in the same manner as {FallbackContextProxy}, but replacing
  # the primary `receiver` object with the result of each proxied method.
  #
  # This is useful for implementing DSL evaluation for immutable context
  # objects.
  #
  # @see Docile.dsl_eval_immutable
  class ChainingFallbackContextProxy < FallbackContextProxy
    # Proxy methods as in {FallbackContextProxy#method_missing}, replacing
    # `receiver` with the returned value.
    def method_missing(method, *args, &block)
      @__receiver__ = super(method, *args, &block)
    end
  end
end

Version data entries

61 entries across 53 versions & 15 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
tdiary-5.0.9 vendor/bundle/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
docile-1.2.0 lib/docile/chaining_fallback_context_proxy.rb
tdiary-5.0.7 vendor/bundle/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
tdiary-5.0.6 vendor/bundle/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
tdiary-5.0.5 vendor/bundle/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb
tdiary-5.0.4 vendor/bundle/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb