Module: Lab42::Literate::GroupDoctest
- Defined in:
- lib/lab42/literate/group_doctest.rb
Constant Summary collapse
- Ex =
Lab42::Literate::Extractor
Instance Method Summary collapse
Instance Method Details
#doctest(filename) ⇒ Object
5 6 7 8 |
# File 'lib/lab42/literate/group_doctest.rb', line 5 def doctest filename doc_blocks = Ex.extract(File.readlines(filename)) doc_blocks.each{ |block| make_context filename, block } end |