class Savi::SpecMarkdown
- Savi::SpecMarkdown
- Reference
- Object
Defined in:
savi/spec_markdown.crConstructors
Class Method Summary
- .get_code_pos(source : Source, code_block : String)
- .get_example_pos(source : Source, example : Example)
Instance Method Summary
- #compiled_content
- #examples
- #filename : String
- #front_matter
- #front_matter_and_main_body : Tuple(String, String)
- #main_body
-
#segments_groups
Take the main body of the document and split it into segment groups, where segment groups correspond to examples and are split by
---
lines, where each segment is a tuple where the first element is the kind and the second element is the content of the segment. - #source
- #source_package : Source::Package
- #sources
- #target_pass
- #target_pass_string : String
-
#verify!(ctx : Compiler::Context) : Bool
Verify that the final state of the given compilation matches expectations, printing info returning true on success, otherwise returning false.
- #verify_annotations!(ctx : Compiler::Context) : Bool
- #verify_errors!(ctx : Compiler::Context) : Bool
- #verify_other_blocks!(ctx : Compiler::Context) : Bool
Constructor Detail
Class Method Detail
Instance Method Detail
Take the main body of the document and split it into segment groups,
where segment groups correspond to examples and are split by ---
lines,
where each segment is a tuple where the first element is the kind
and the second element is the content of the segment.
Markdown code blocks give their syntax line as the "kind",
while bare text in between those code blocks has a "kind" of nil
.
Verify that the final state of the given compilation matches expectations, printing info returning true on success, otherwise returning false.