quickdraw/compilation_equivalence_cases/string_escapes.rb

Lines

0%

0 of 22 covered

Branches

—

0 of 0 covered

Methods

0%

0 of 6 covered

Not run
3-913-1519-2125-2731-3337-39
Never called
1# frozen_string_literal: true
2
30module EquivalenceCases
40 module StringEscapes
50 class Quotes < Phlex::HTML
60 def view_template
70 div { 'a "quoted" \\ back\slash' }
80 div { "tab\there\nnewline" }
90 div(title: 'q"uo\\te') { "x" }
10 end
11 end
12
130 class HashCurly < Phlex::HTML
140 def view_template
150 div { 'lit #{x}' } # rubocop:disable Lint/InterpolationCheck
16 end
17 end
18
190 class HashAt < Phlex::HTML
200 def view_template
210 div { 'lit #@x and #$y' }
22 end
23 end
24
250 class Attribute < Phlex::HTML
260 def view_template
270 div(title: 'a#{b}') { "x" } # rubocop:disable Lint/InterpolationCheck
28 end
29 end
30
310 class PlainText < Phlex::HTML
320 def view_template
330 plain 'p #{x}' # rubocop:disable Lint/InterpolationCheck
34 end
35 end
36
370 class SingleQuoted < Phlex::HTML
380 def view_template
390 pre { 'single quoted #{not}' }
40 end
41 end
42 end
43end