diff options
| author | OKURA Masafumi <masafumi.o1988@gmail.com> | 2019-08-16 22:56:30 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-17 12:19:13 +0900 |
| commit | 042be439d92ea0910fe3bd0d5e9a1d4135257d2d (patch) | |
| tree | 85dca40985a6b888dcf7981e2d05674c8f8ba9b0 /spec/ruby/shared | |
| parent | 045152df9e91c34a2785cb95e5964d7fc1b14df5 (diff) | |
Improve the doc example of `method_missing`
Improvements are:
* Use `symbol` instead of `methId`, described in doc
* Add `*args` following method signature
* Rescue error in `roman_to_int` and calls `super`, recommended in doc
* Call invalid `foo` method to Roman object to raise NoMethodError
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2372
Diffstat (limited to 'spec/ruby/shared')
0 files changed, 0 insertions, 0 deletions
