mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Support argument for ErrNotRegular
This commit is contained in:
parent
0c59bfae0a
commit
2f66c443d7
Notes:
git
2019-11-30 08:01:06 +09:00
1 changed files with 6 additions and 2 deletions
|
@ -28,8 +28,12 @@ module ExceptionForMatrix # :nodoc:
|
|||
end
|
||||
|
||||
class ErrNotRegular < StandardError
|
||||
def initialize
|
||||
super("Not Regular Matrix")
|
||||
def initialize(val = nil)
|
||||
if val
|
||||
super(val)
|
||||
else
|
||||
super("Not Regular Matrix")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue