[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>

I would like to request developers meeting around April 17 or 18 in this month.

14 messages 2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014 — Urabe Shyouhei <shyouhei@...> 2014/04/03

It's good if we have a meeting then.

[#61826] Re: Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...> 2014/04/03

Regarding openssl issues, I’ve discussed possible meeting time with Martin last month and he seemed positive.

[#61833] Re: Plan Developers Meeting Japan April 2014 — Martin Bo煬et <martin.bosslet@...> 2014/04/03

Hi,

[ruby-core:62130] [ruby-trunk - Bug #7987] [Closed] Method#parameters should consider a prepended or refined methd

From: nobu@...
Date: 2014-04-22 07:36:29 UTC
List: ruby-core #62130
Issue #7987 has been updated by Nobuyoshi Nakada.

Description updated
Status changed from Open to Closed

Seems fixed already.

----------------------------------------
Bug #7987: Method#parameters should consider a prepended or refined methd
https://bugs.ruby-lang.org/issues/7987#change-46287

* Author: Nobuhiro IMAI
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: core
* Target version: 
* ruby -v: ruby 2.1.0dev (2013-02-28 trunk 39535) [x86_64-linux]
* Backport: 
----------------------------------------
In the following example, `Method#parameters` tell the number of argument is one,
but actual methods take two arguments. I got confused..

~~~ruby
 RUBY_DESCRIPTION # => "ruby 2.1.0dev (2013-02-28 trunk 39535) [x86_64-linux]"
 
 module PM
   def m(a, b)
     :pm
   end
 end
 
 class PC
   prepend PM
 
   def m(a)
     :pc
   end
 end
 
 pm = PC.instance_method(:m)
 pm.owner # => #<PC:0x00000001285888>
 pm.parameters # => [[:req, :a]]
 pc = PC.new
 pc.method(:m).owner # => #<PC:0x00000001285888>
 pc.method(:m).parameters # => [[:req, :a]]
 pc.m(:a) # => ArgumentError
 pc.m(:a, :b) # => :pm
 
 class RC
   def m(a)
     :rc
   end
 end
 
 module RM
   refine RC do # !> Refinements are experimental, and the behavior may change in future versions of Ruby!
     def m(a, b)
       :rm
     end
   end
 end
 
 using RM
 
 rm = RC.instance_method(:m)
 rm.owner # => RC
 rm.parameters # => [[:req, :a]]
 rc = RC.new
 rc.method(:m).owner # => RC
 rc.method(:m).parameters # => [[:req, :a]]
 rc.m(:a) # => ArgumentError
 rc.m(:a, :b) # => :rm
~~~




-- 
https://bugs.ruby-lang.org/

In This Thread