Sha256: 7ca673aaf6af640ba6d4c3931a0bcf33b04ea2c3936dd68a854632bdc6827c2d

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

module WLang
  class Scope
    class ProxyScope < Scope

      def fetch(key, &blk)
        subject.fetch(key) do
          parent.fetch(key, &blk)
        end
      end

      def inspect
        subject.inspect
      end
      alias :to_s :inspect

    end # class ProxyScope
  end # class Scope
end # module WLang

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wlang-2.0.1 lib/wlang/scope/proxy_scope.rb
wlang-2.0.0 lib/wlang/scope/proxy_scope.rb
wlang-2.0.0.beta lib/wlang/scope/proxy_scope.rb