diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2021-05-21 11:38:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 11:38:55 -0700 |
commit | 5d8b7fb0f8393e8ce1aed7642f509818e4e5c211 (patch) | |
tree | b879281965f51d4f2224a70b2b34f0887c1e199e /lib/psych/exception.rb | |
parent | 38e4b5115f170ae7d79debfc9219331a6d52babe (diff) | |
parent | 441958396f40d526a62e564761d2bad534465a5b (diff) | |
download | psych-5d8b7fb0f8393e8ce1aed7642f509818e4e5c211.zip |
Implement YAML.safe_dump to make safe_load more usable.
Diffstat (limited to 'lib/psych/exception.rb')
-rw-r--r-- | lib/psych/exception.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/psych/exception.rb b/lib/psych/exception.rb index fac0c42..f473b95 100644 --- a/lib/psych/exception.rb +++ b/lib/psych/exception.rb @@ -7,8 +7,8 @@ module Psych end class DisallowedClass < Exception - def initialize klass_name - super "Tried to load unspecified class: #{klass_name}" + def initialize action, klass_name + super "Tried to #{action} unspecified class: #{klass_name}" end end end |