quickdraw/compilation_equivalence_cases/heredoc.rb
Lines
0%0 of 9 covered
Branches
—0 of 0 covered
Methods
0%0 of 2 covered
- Not run
- 3-917-18
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module Heredoc |
| 5 | 0 | class Heredoc < Phlex::HTML |
| 6 | 0 | def view_template |
| 7 | 0 | lines = 3 |
| 8 | 0 | unknown { |
| 9 | 0 | p { <<~FIRST } |
| 10 | This is a heredoc. | |
| 11 | It has #{lines} lines of text. | |
| 12 | And it's all going in this <p> tag. | |
| 13 | FIRST | |
| 14 | } | |
| 15 | end | |
| 16 | ||
| 17 | 0 | def unknown |
| 18 | 0 | yield |
| 19 | end | |
| 20 | end | |
| 21 | end | |
| 22 | end |