quickdraw/compilation_equivalence_cases/refinement_same_line.rb

Lines

0%

0 of 5 covered

Branches

—

0 of 0 covered

Methods

0%

0 of 2 covered

Not run
3-613
Never called
1# frozen_string_literal: true
2
30module EquivalenceCases
40 module RefinementSameLine
50 module Shout
60 refine(String) { def shout = upcase + "!" }
7 end
8 end
9end
10
11# The `using` follows the definition on its line, so the definition doesn't
12# see the refinement.
130class EquivalenceCases::RefinementSameLine::RefinementSameLine < Phlex::HTML; def view_template = div { "hi".respond_to?(:shout).to_s }; end; using EquivalenceCases::RefinementSameLine::Shout