Sha256: eecfd46f4261a4cde9696975280536719de3942f1ae9dd92a979238c792211ef
Contents?: true
Size: 408 Bytes
Versions: 14
Compression:
Stored size: 408 Bytes
Contents
class ScopedEnv def initialize(delegation_object, methods) @delegation_object = delegation_object @methods = methods end def method_missing(symbol, *args, &block) if @methods.include?(symbol) @delegation_object.send(symbol, *args, &block) else super end end def respond_to_missing?(symbol, include_private = false) @methods.include?(symbol) || super end end
Version data entries
14 entries across 14 versions & 1 rubygems