diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-03 16:34:21 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-03 16:34:21 +0900 |
| commit | 427ea605e7408fd2ed3b5c97d701c660b8028788 (patch) | |
| tree | 1914f4d72a56d6ba8969879d3bfcadb1bbb71907 /mrblib | |
| parent | b81f0d0ffb7db46507f7b79ccb72cc94428555ce (diff) | |
| parent | 037a1d70880ecdcfd2d55eb10c234de1001eb654 (diff) | |
| download | mruby-427ea605e7408fd2ed3b5c97d701c660b8028788.tar.gz mruby-427ea605e7408fd2ed3b5c97d701c660b8028788.zip | |
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/error.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mrblib/error.rb b/mrblib/error.rb index 6e8181e9d..a5b6b3223 100644 --- a/mrblib/error.rb +++ b/mrblib/error.rb @@ -48,6 +48,12 @@ end # ISO 15.2.32 class NoMethodError < NameError + attr_reader :args + + def initialize(message=nil, name=nil, args=nil) + @args = args + super message, name + end end # ISO 15.2.33 |
