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
30module EquivalenceCases
40 module InterpolatedString
50 class InterpolatedString < Phlex::HTML
60 def view_template
70 name = "Joel"
80 @ivar = "Will"
90 h1 { "Hello, #{name}!" }
100 h2 { "Hello, #@ivar!" } # rubocop:disable Style/VariableInterpolation
110 h3 { "Hello #{"#{name}"}" } # rubocop:disable Style/RedundantInterpolation
12 end
13 end
14 end
15end