quickdraw/compilation_equivalence_cases/interpolated_string.rb
Lines
0%0 of 9 covered
Branches
—0 of 0 covered
Methods
0%0 of 1 covered
- Not run
- 3-11
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module InterpolatedString |
| 5 | 0 | class InterpolatedString < Phlex::HTML |
| 6 | 0 | def view_template |
| 7 | 0 | name = "Joel" |
| 8 | 0 | @ivar = "Will" |
| 9 | 0 | h1 { "Hello, #{name}!" } |
| 10 | 0 | h2 { "Hello, #@ivar!" } # rubocop:disable Style/VariableInterpolation |
| 11 | 0 | h3 { "Hello #{"#{name}"}" } # rubocop:disable Style/RedundantInterpolation |
| 12 | end | |
| 13 | end | |
| 14 | end | |
| 15 | end |