quickdraw/compilation_equivalence_cases/refinement.rb
Lines
0%0 of 12 covered
Branches
—0 of 0 covered
Methods
0%0 of 2 covered
- Not run
- 3-61113-19
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module Refinement |
| 5 | 0 | module Shout |
| 6 | 0 | refine(String) { def shout = upcase + "!" } |
| 7 | end | |
| 8 | end | |
| 9 | end | |
| 10 | ||
| 11 | 0 | using EquivalenceCases::Refinement::Shout |
| 12 | ||
| 13 | 0 | module EquivalenceCases |
| 14 | 0 | module Refinement |
| 15 | 0 | class Refined < Phlex::HTML |
| 16 | 0 | def view_template |
| 17 | 0 | div { "hi".shout } |
| 18 | 0 | plain "x".shout |
| 19 | 0 | div(title: "t".shout) |
| 20 | end | |
| 21 | end | |
| 22 | end | |
| 23 | end |