Skip to content

Commit

Permalink
[Truffle] Adding NoMethodError to exception.rb.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed Apr 9, 2015
1 parent fe8ed1c commit 971b87c
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
Expand Up @@ -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

Expand Down

0 comments on commit 971b87c

Please sign in to comment.