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 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module SameLineDefinitions |
| 5 | 0 | class SameLineDefinitions < Phlex::HTML |
| 6 | 0 | def view_template |
| 7 | 0 | 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. | |
| 12 | 0 | unless ENV.key?("PHLEX_NEVER_SET") then def part = span { "live" } else def part = span { "never" } end |
| 13 | end | |
| 14 | end | |
| 15 | end |