quickdraw/compilation_equivalence_cases/interpolation.rb

Lines

0%

0 of 12 covered

Branches

—

0 of 0 covered

Methods

0%

0 of 2 covered

Not run
3-71012-1620
Never called
1# frozen_string_literal: true
2
30module EquivalenceCases
40 module Interpolation
50 class Interpolation < Phlex::HTML
60 def initialize
70 @name = "Wor<ld"
8 end
9
100 def name = @name
11
120 def view_template
130 h1 { "Hello #{name}" }
140 h2 { "Hi #@name!" } # rubocop:disable Style/VariableInterpolation
150 h3 { "n=#{1 + 1}" }
160 p { <<~TEXT }
17 Heredoc #{name}
18 line 2 <
19 TEXT
200 div { "a" "b" } # rubocop:disable Lint/ImplicitStringConcatenation
21 end
22 end
23 end
24end