1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

2 commits

Author SHA1 Message Date
Ryunosuke SATO
74784e8f78 Handle error about frozen object in Ruby 2.2
This kind of error message seems to be updated in Ruby 2.2.

For example, the following code throws an error that has different
error message with Ruby version:
```
"".freeze.instance_eval do
  def hi
  end
end
```

In Ruby 2.1.3:
> RuntimeError: can't modify frozen Class

In Ruby 2.2.0-preview1:
> RuntimeError: can't modify frozen object
2014-10-14 23:07:48 +09:00
Kyrylo Silin
8e553e2144 pry.rb: Move all exception specific code to its own file
This finishes up Robert Gleeson's refactoring. A sole file for
RescuableException doesn't make much sense, since we have a few more
exceptions left behind.
2013-09-03 11:04:25 +03:00