Sha256: 94fc1de2a776fc9fb288cc5ca669fd9dc4226f3d0fa38e3b8b46a1f221c4da97
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
### Run Irb Use the ```run_irb``` feature to execute selected Ruby snippets in the Ruby interactive shell, ```irb```. This allows you to interleave *any* markdown (usually explanatory text, but actually anything) with the Ruby snippets. 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markdown_helper-2.4.0 | markdown/use_cases/run_irb/run_irb/use_case_template.md |