quickdraw/compilation_equivalence_cases/override_with_super.rb
Lines
0%0 of 15 covered
Branches
—0 of 0 covered
Methods
0%0 of 4 covered
- Not run
- 3-912-1316-1822-24
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module OverrideWithSuper |
| 5 | 0 | class OverrideWithSuper < Phlex::HTML |
| 6 | 0 | def view_template |
| 7 | 0 | a(href: "/") { "Home" } |
| 8 | 0 | div { a(href: "/about") { "About" } } |
| 9 | 0 | br(class: "x") |
| 10 | end | |
| 11 | ||
| 12 | 0 | def a(**attributes, &) |
| 13 | 0 | super(class: "link", **attributes, &) |
| 14 | end | |
| 15 | ||
| 16 | 0 | def br(**) |
| 17 | 0 | plain "|" |
| 18 | 0 | super |
| 19 | end | |
| 20 | end | |
| 21 | ||
| 22 | 0 | class Child < OverrideWithSuper |
| 23 | 0 | def a(**, &) |
| 24 | 0 | span { super } |
| 25 | end | |
| 26 | end | |
| 27 | end | |
| 28 | end |