quickdraw/compilation_equivalence_cases/ruby2_keywords_alias_elsewhere.rb
Lines
0%0 of 11 covered
Branches
—0 of 0 covered
Methods
0%0 of 4 covered
- Not run
- 3-49-101215-1720-2124
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module Ruby2KeywordsAliasElsewhere |
| 5 | # Marks a method of its own that has the alias's name. That doesn't mark | |
| 6 | # the component's alias, but telling which class a mark is in would mean | |
| 7 | # evaluating the class's statements, so marks are matched by name and | |
| 8 | # `delegate` is refused. | |
| 9 | 0 | class Legacy |
| 10 | 0 | ruby2_keywords def forward(*args, &block) = target(*args, &block) |
| 11 | ||
| 12 | 0 | def target(*, **) = nil |
| 13 | end | |
| 14 | ||
| 15 | 0 | class Ruby2KeywordsAliasElsewhere < Phlex::HTML |
| 16 | 0 | def view_template |
| 17 | 0 | forward |
| 18 | end | |
| 19 | ||
| 20 | 0 | def delegate |
| 21 | 0 | div { "compiled" } |
| 22 | end | |
| 23 | ||
| 24 | 0 | alias_method :forward, :delegate |
| 25 | end | |
| 26 | end | |
| 27 | end |