Project

General

Profile

Actions

Bug #13752

closed

Can't observe sibling refinements

Added by shyouhei (Shyouhei Urabe) almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-07-18 trunk 59355) [x86_64-darwin15]
[ruby-core:82091]

Description

Sorry in advance if already reported elsewhere, but is this intentional?

class Foo
  using Module.new {
    refine Foo do
      def foo
        puts "foo"
      end
    end
  }

  using Module.new {
    refine Foo do
      def bar
        foo
      end
    end
  }

  new.bar
end
Actions

Also available in: Atom PDF

Like0
Like0