summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-05-18 20:23:07 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-05-18 20:23:07 -0700
commit18a88dd3f40abf73451e6be1a93d6307d111c66b (patch)
tree72c5ac7de118dfd8533fbb596ae0b7a977ad5a37 /lib
parent07667473d0ec204eb2cfa7b8938ae2f5010e3220 (diff)
downloadpsych-18a88dd3f40abf73451e6be1a93d6307d111c66b.zip
setting the encoding twice is not allowed
Diffstat (limited to 'lib')
-rw-r--r--lib/psych.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index 464fae4..a73b892 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -94,6 +94,9 @@ module Psych
# The version of libyaml Psych is using
LIBYAML_VERSION = Psych.libyaml_version.join '.'
+ class Exception < RuntimeError
+ end
+
###
# Load +yaml+ in to a Ruby data structure. If multiple documents are
# provided, the object contained in the first document will be returned.