Sha256: 352b123d5cc2e45b5ddcb0e642c5d34fe2294c822ba24ca399a58c799d6139b9

Contents?: true

Size: 418 Bytes

Versions: 12

Compression:

Stored size: 418 Bytes

Contents

module WLang
  class Scope
    class ProcScope < Scope

      def fetch(key, dialect = nil, unfound = nil)
        scoped = Scope.coerce(subject.call)
        fallbk = lambda{ safe_parent.fetch(key, dialect, unfound) }
        scoped.fetch(key, dialect, fallbk)
      end

      def inspect
        subject.inspect
      end
      alias :to_s :inspect

    end # class ProcScope
  end # class Scope
end # module WLang

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wlang-3.0.1 lib/wlang/scope/proc_scope.rb
wlang-3.0.0 lib/wlang/scope/proc_scope.rb
wlang-2.3.1 lib/wlang/scope/proc_scope.rb
wlang-2.3.0 lib/wlang/scope/proc_scope.rb
wlang-2.2.4 lib/wlang/scope/proc_scope.rb
wlang-2.2.3 lib/wlang/scope/proc_scope.rb
wlang-2.2.2 lib/wlang/scope/proc_scope.rb
wlang-2.2.1 lib/wlang/scope/proc_scope.rb
wlang-2.2.0 lib/wlang/scope/proc_scope.rb
wlang-2.1.2 lib/wlang/scope/proc_scope.rb
wlang-2.1.1 lib/wlang/scope/proc_scope.rb
wlang-2.1.0 lib/wlang/scope/proc_scope.rb