From: nobu@... Date: 2017-11-18T00:40:47+00:00 Subject: [ruby-core:83809] [Ruby trunk Feature#14111] ArgumentErrorが発生した時メソッドのプロトタイプをメッセージに含む Issue #14111 has been updated by nobu (Nobuyoshi Nakada). esjee (SJ Stoker) wrote: > # Evaluation > > * ������������������������������������������������������������������������������������������������������ > * ��������������������������������������������������������������������������������������������������������������������������������� > * sentry-raven��������������������������������������� ������������������������������������������������������ArgumentError������������������������������������������Method#parameters������������������������������������������������������������������������������������ > * Ruby���������������������������rb������������������������������������������������������������ C������������������������������������������������������������������������������������(arity)������������������������������������ RDoc������������������������������������������������ > # Discussion > > * ���������������feature���������������������? ������������������������ ---------------------------------------- Feature #14111: ArgumentError������������������������������������������������������������������������������ https://bugs.ruby-lang.org/issues/14111#change-67843 * 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: