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
30module EquivalenceCases
40 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.
90 class Legacy
100 ruby2_keywords def forward(*args, &block) = target(*args, &block)
11
120 def target(*, **) = nil
13 end
14
150 class Ruby2KeywordsAliasElsewhere < Phlex::HTML
160 def view_template
170 forward
18 end
19
200 def delegate
210 div { "compiled" }
22 end
23
240 alias_method :forward, :delegate
25 end
26 end
27end