quickdraw/compilation_equivalence_cases/refined_string_subclass_module.rb
Lines
0%0 of 13 covered
Branches
—0 of 0 covered
Methods
0%0 of 2 covered
- Not run
- 3-57-811-121719-23
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module RefinedStringSubclassModule |
| 5 | 0 | module Quoting; end |
| 6 | ||
| 7 | 0 | class Title < String |
| 8 | 0 | include Quoting |
| 9 | end | |
| 10 | ||
| 11 | 0 | module Loud |
| 12 | 0 | refine(Quoting) { def include?(*) = raise("refined") } |
| 13 | end | |
| 14 | end | |
| 15 | end | |
| 16 | ||
| 17 | 0 | using EquivalenceCases::RefinedStringSubclassModule::Loud |
| 18 | ||
| 19 | 0 | module EquivalenceCases |
| 20 | 0 | module RefinedStringSubclassModule |
| 21 | 0 | class RefinedStringSubclassModule < Phlex::HTML |
| 22 | 0 | def view_template |
| 23 | 0 | div(title: Title.new("x")) |
| 24 | end | |
| 25 | end | |
| 26 | end | |
| 27 | end |