Class: NanDoc::SpecDoc::TestFramework::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/nandoc/spec-doc/test-framework/proxy.rb

Direct Known Subclasses

MiniTest::Proxy

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.sexp_cacheObject (readonly)

Returns the value of attribute sexp_cache.



8
9
10
# File 'lib/nandoc/spec-doc/test-framework/proxy.rb', line 8

def sexp_cache
  @sexp_cache
end

Instance Method Details

#sexp_get(testfile, testname) ⇒ Object



42
43
44
45
46
# File 'lib/nandoc/spec-doc/test-framework/proxy.rb', line 42

def sexp_get testfile, testname
  Proxy.sexp_cache[testfile][testname] ||= begin
    sexp_build testfile, testname
  end
end