Project

General

Profile

« Previous | Next » 

Revision 3b7b7065

Added by nobu (Nobuyoshi Nakada) over 5 years ago

proc.c: Support any callable when composing Procs

  • proc.c (proc_compose): support any object with a call method rather
    than supporting only procs. [Feature #6284]

  • proc.c (compose): use the function call on the given object rather
    than rb_proc_call_with_block in order to support any object.

  • test/ruby/test_proc.rb: Add test cases for composing Procs with
    callable objects.

  • test/ruby/test_method.rb: Add test cases for composing Methods with
    callable objects.

From: Paul Mucur

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e