quickdraw/compilation_equivalence_cases/same_line_definitions.rb

Lines

0%

0 of 6 covered

Branches

0%

0 of 2 covered

Methods

0%

0 of 2 covered

Not run
3-712
Never called
1# frozen_string_literal: true
2
30module EquivalenceCases
40 module SameLineDefinitions
50 class SameLineDefinitions < Phlex::HTML
60 def view_template
70 div { part }
8 end
9
10 # Both definitions have the same source location, so the compiler
11 # can't tell which one is live and must leave them alone.
120 unless ENV.key?("PHLEX_NEVER_SET") then def part = span { "live" } else def part = span { "never" } end
13 end
14 end
15end