summaryrefslogtreecommitdiff
path: root/lib/psych.rb
blob: df0015641dbe9df4d74809aa4e40b076a3022bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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