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