Skip to content

Commit

Permalink
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions truffle/src/main/ruby/core/rubinius/common/exception.rb
Original file line number Diff line number Diff line change
@@ -26,6 +26,18 @@

# Only part of Rubinius' exception.rb


class NoMethodError < NameError
attr_reader :name
attr_reader :args

def initialize(*arguments)
super(arguments.shift)
@name = arguments.shift
@args = arguments.shift
end
end

class StopIteration < IndexError
end

0 comments on commit 971b87c

Please sign in to comment.