quickdraw/compilation_equivalence_cases/block_values.rb

Lines

0%

0 of 27 covered

Branches

—

0 of 0 covered

Methods

0%

0 of 2 covered

Not run
3-71012-2427-2832-3438-40
Never called
1# frozen_string_literal: true
2
30module EquivalenceCases
40 module BlockValues
50 class BlockValues < Phlex::HTML
60 def initialize
70 @ivar = "ivar<>"
8 end
9
100 def str = "meth<>"
11
120 def view_template
130 div { 42 }
140 div { 4.2 }
150 div { :sym }
160 div { nil }
170 div { str }
180 div { @ivar }
190 div { safe("<b>x</b>") }
200 div { span { "a" }; "ignored" }
210 div { part; "ignored" }
220 div { "a<b" }
230 div { "x".b }
240 div { "#{span { 'x' }}" } # rubocop:disable Style/RedundantInterpolation
25 end
26
270 def part
280 span { "part" }
29 end
30 end
31
320 class ObjectValue < Phlex::HTML
330 def view_template
340 div { Object.new }
35 end
36 end
37
380 class ArrayValue < Phlex::HTML
390 def view_template
400 div { [1, 2] }
41 end
42 end
43 end
44end