quickdraw/compilation_equivalence_cases/refined_undefined_method.rb

Lines

0%

0 of 12 covered

Branches

—

0 of 0 covered

Methods

0%

0 of 2 covered

Not run
3-61113-1720-21
Never called
1# frozen_string_literal: true
2
30module EquivalenceCases
40 module RefinedUndefinedMethod
50 module Unprintable
60 refine(Integer) { undef_method :to_s }
7 end
8 end
9end
10
110using EquivalenceCases::RefinedUndefinedMethod::Unprintable
12
130module EquivalenceCases
140 module RefinedUndefinedMethod
150 class RefinedUndefinedMethod < Phlex::HTML
160 def initialize
170 @count = 3
18 end
19
200 def view_template
210 div(title: @count)
22 end
23 end
24 end
25end