Sha256: 971cbf339521b6208e71637c9c80c4053b11fdef91fd13aaf1236083448b7b2b

Contents?: true

Size: 822 Bytes

Versions: 5

Compression:

Stored size: 822 Bytes

Contents

### Run Irb

Use the ```run_irb``` feature to execute markdown-embedded Ruby snippets in the Ruby interactive shell, ```irb```.

This allows you to interleave Ruby snippets with *any* markdown (usually explanatory text, but actually anything).

In the example template below, snippets of Ruby are interleaved with other markdown elements.

Each Ruby snippet that's to be executed in ```irb``` is bracketed by pragmas <code>\`\`\`#run_irb</code> and <code>\`\`\`</code>.

In the example, each snippet has some Ruby code that shows values using method ```p```.

@[:pre](template.md)

@[:markdown](../interface.md)

The resulting markdown (raw) shows the output from ```irb``` for each snippet:

@[:pre](markdown.md)

Resulting markdown (rendered):

---

@[:markdown](markdown.md)

---






Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
markdown_helper-2.5.4 markdown/use_cases/run_irb/run_irb/use_case_template.md
markdown_helper-2.5.3 markdown/use_cases/run_irb/run_irb/use_case_template.md
markdown_helper-2.5.2 markdown/use_cases/run_irb/run_irb/use_case_template.md
markdown_helper-2.5.1 markdown/use_cases/run_irb/run_irb/use_case_template.md
markdown_helper-2.5.0 markdown/use_cases/run_irb/run_irb/use_case_template.md