From: ewfawefw3@... Date: 2017-11-15T19:55:01+00:00 Subject: [ruby-core:83790] [Ruby trunk Feature#14111] ArgumentErrorが発生した時メソッドのプロトタイプをメッセージに含む Issue #14111 has been reported by esjee (SJ Stoker). ---------------------------------------- Feature #14111: ArgumentError������������������������������������������������������������������������������ https://bugs.ruby-lang.org/issues/14111 * Author: esjee (SJ Stoker) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- ��������������������������������������������������������������������������������������������������������������������� ������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������ # Abstract ArgumentError��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� # Background ������ArgumentError������������������������������������������ ``` [1] pry(main)> cat ./spec/kerk_class.rb class Kerk def foo1(a) end end [2] pry(main)> require './spec/kerk_class.rb' => true [3] pry(main)> Kerk.new.foo1 ArgumentError: wrong number of arguments (0 for 1) from /home/esjee/src/printprototype/spec/kerk_class.rb:2:in `foo1' ``` ��������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������������������������������� Ruby��������������������������������������������������������������������������������� # Proposal ArgumentError������������������������������������������������������������������������������ ��������� ``` [4] pry(main)> Kerk.new.foo1 ArgumentError: wrong number of arguments (0 for 1) Method prototype: def foo1(a) from /home/esjee/src/printprototype/spec/kerk_class.rb:2:in `foo1' ``` # Implementation https://github.com/esjee/PrintPrototype ��������������������������� https://github.com/esjee/PrintPrototype/blob/master/lib/printprototype/core_ext/argument_error.rb # Evaluation ��������������������������������������������������������������� * ������������������������������������������������������������������������������������������������������ * ��������������������������������������������������������������������������������������������������������������������������������� * Ruby���������������������������rb������������������������������������������������������������ * sentry-raven��������������������������������������� # Discussion ������������������������������������������������������������������������ ��������������������������������������� * ���������������feature���������������������? * ��������������������������������������������������������������������������������������������� # Summary ArgumentError������������������������������������������������������������������������������������������ ���������������gem������������������������������������������������������������������������������������������ ���������������������������Ruby���������������featue������������������������ ��������������������������������������������������������������� -- https://bugs.ruby-lang.org/ Unsubscribe: