diff options
Diffstat (limited to 'lib/psych.rb')
-rw-r--r-- | lib/psych.rb | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/psych.rb b/lib/psych.rb index 31cd7f6..df00156 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -1,3 +1,17 @@ -class Psych - VERSION = '1.0.0' +require 'psych/parser' +require 'psych/psych' + +module Psych + VERSION = '1.0.0' + LIBYAML_VERSION = Psych.libyaml_version.join '.' + + # Encodings supported by Psych (and libyaml) + ANY_ENCODING = 1 + UTF8_ENCODING = 2 + UTF16LE_ENCODING = 3 + UTF16BE_ENCODING = 4 + + def self.parse thing + Psych::Parser.new.parse thing + end end |