quickdraw/compilation_equivalence_cases/empty_keyword_splat.rb

Lines

0%

0 of 12 covered

Branches

—

0 of 0 covered

Methods

0%

0 of 3 covered

Not run
3-68-1013-17
Never called
1# frozen_string_literal: true
2
30module EquivalenceCases
40 module EmptyKeywordSplat
50 class EmptyKeywordSplat < Phlex::HTML
60 def self.equivalence_scenarios = { "with attributes" => -> (klass) { klass.new(id: "a").call } }
7
80 def initialize(**attrs)
90 @attrs = attrs
100 @nothing = nil
11 end
12
130 def view_template
140 div(**@attrs) { "x" }
150 div(**{}) { "empty" }
160 div(**@nothing) { "nil" }
170 div(id: "b", **@nothing) { "nil with a key" }
18 end
19 end
20 end
21end