From: prijutme4ty@... Date: 2014-02-15T05:24:22+00:00 Subject: [ruby-core:60752] [ruby-trunk - Bug #9520] [Open] Arity of a Proc obtained by Symbol#to_proc Issue #9520 has been reported by Ilya Vorontsov. ---------------------------------------- Bug #9520: Arity of a Proc obtained by Symbol#to_proc https://bugs.ruby-lang.org/issues/9520 * Author: Ilya Vorontsov * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1 * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- I'm not sure is it a bug, but I find this behavior wrong. :to_s.to_proc.arity # => -1 but isn't :to_s.to_proc is the same as ->(x){x.to_s} whose arity is 1? -- http://bugs.ruby-lang.org/