quickdraw/compilation_equivalence_cases/overridden_attributes.rb
Lines
0%0 of 10 covered
Branches
—0 of 0 covered
Methods
0%0 of 2 covered
- Not run
- 3-1114
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module OverriddenAttributes |
| 5 | 0 | class OverriddenAttributes < Phlex::HTML |
| 6 | 0 | def view_template |
| 7 | 0 | div(**{ id: "x" }) # rubocop:disable Style/RedundantDoubleSplatHashBraces |
| 8 | 0 | extra = { class: "c" } |
| 9 | 0 | span(id: "y", **extra) { "z" } |
| 10 | 0 | img(**Hash.new(["default"])) |
| 11 | 0 | img(**{}) |
| 12 | end | |
| 13 | ||
| 14 | 0 | private def __attributes__(_attributes) = " custom" |
| 15 | end | |
| 16 | end | |
| 17 | end |