quickdraw/compilation_equivalence_cases/refinement_mid_file.rb
Lines
0%0 of 13 covered
Branches
—0 of 0 covered
Methods
0%0 of 3 covered
- Not run
- 3-69-111719-23
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module RefinementMidFile |
| 5 | 0 | module Shout |
| 6 | 0 | refine(String) { def shout = upcase + "!" } |
| 7 | end | |
| 8 | ||
| 9 | 0 | class Unrefined < Phlex::HTML |
| 10 | 0 | def view_template |
| 11 | 0 | div { "hi".respond_to?(:shout).to_s } |
| 12 | end | |
| 13 | end | |
| 14 | end | |
| 15 | end | |
| 16 | ||
| 17 | 0 | using EquivalenceCases::RefinementMidFile::Shout |
| 18 | ||
| 19 | 0 | module EquivalenceCases |
| 20 | 0 | module RefinementMidFile |
| 21 | 0 | class Refined < Phlex::HTML |
| 22 | 0 | def view_template |
| 23 | 0 | div { "hi".shout } |
| 24 | end | |
| 25 | end | |
| 26 | end | |
| 27 | end |