Sha256: 198953578148313d98befd7d2f8e520e145759d1c72d5123d15fd8d9325b4c4a
Contents?: true
Size: 432 Bytes
Versions: 4
Compression:
Stored size: 432 Bytes
Contents
module Linecook # A proxy used to chain method calls back to a recipe. class Proxy def initialize(recipe) @recipe = recipe end # Proxies to recipe.chain. def method_missing(*args, &block) @recipe.chain(*args, &block) end # Returns an empty string, such that the proxy makes no text when it is # accidentally put into a target by a helper. def to_s '' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
linecook-1.2.1 | lib/linecook/proxy.rb |
linecook-1.2.0 | lib/linecook/proxy.rb |
linecook-1.1.0 | lib/linecook/proxy.rb |
linecook-1.0.0 | lib/linecook/proxy.rb |