Actions
Feature #11476
closedMethods defined in Refinements cannot be called via send
Feature #11476: Methods defined in Refinements cannot be called via send
[ruby-core:<unknown>]
Description
class C end module M refine C do def a() p:hello end def b() p:world end end end using M C.new.a C.new.send :b % ruby -v t.rb ruby 2.3.0dev (2015-08-22 trunk 51660) [x86_64-darwin14] :hello t.rb:13:in `<main>': undefined method `b' for #<C:0x007f86c9a12af0> (NoMethodError) Actions