quickdraw/compilation_equivalence_cases/prepended_namespace.rb

Lines

100%

11 of 11 covered

Branches

—

0 of 0 covered

Methods

75%

3 of 4 covered

Never called
1# frozen_string_literal: true
2
31module EquivalenceCases
41 module PrependedNamespace
51 class View < Phlex::HTML
61 def view_template = part
7
81 def div(**, &) = plain("custom")
9 end
10
11 # Prepending puts this module before the namespace in its ancestors, but
12 # `PrependedNamespace::View` still names the namespace's own View.
131 module Prepended
141 class View < PrependedNamespace::View
151 register_element :div
16 end
17 end
18
191 prepend Prepended
20 end
21
221 class PrependedNamespace::View
237 def part = div { "body" }
24 end
25end