module

Docspec

The main module of the docspec library.

Refer to the top level README for usage.

Constants

CODEBLOCK_REGEX = /^\s*#\s*```/
COMMENT_REGEX = /^\s*#/
DOCTEST_ANNOTATION_REGEX = /^\s*#\s?\[\]\(@doctest\)/
DOCTEST_PREFIX = /^>>/
DOCTEST_RESULT_PREFIX = /# =>/
VERSION = "0.3.0"

Macros

doctest(filename)

Parses filename for marked examples to create specs.

Source