diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-27 01:13:22 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-27 01:13:22 -0700 |
commit | 6d0f682f6ab3289c3150d1da120b1d90e6913e0b (patch) | |
tree | deadc1d3f739db7b95a0072aa73a5133c7bd37cb /lib/psych.rb | |
parent | 70467fb3e4611559138d016e61e0388ae1c52a56 (diff) | |
download | psych-6d0f682f6ab3289c3150d1da120b1d90e6913e0b.zip |
folded scalars
Diffstat (limited to 'lib/psych.rb')
-rw-r--r-- | lib/psych.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/psych.rb b/lib/psych.rb index df00156..a695b0a 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -11,6 +11,14 @@ module Psych UTF16LE_ENCODING = 3 UTF16BE_ENCODING = 4 + # Scalar Styles + ANY_SCALAR_STYLE = 0 + PLAIN_SCALAR_STYLE = 1 + SINGLE_QUOTED_SCALAR_STYLE = 2 + DOUBLE_QUOTED_SCALAR_STYLE = 3 + LITERAL_SCALAR_STYLE = 4 + FOLDED_SCALAR_STYLE = 5 + def self.parse thing Psych::Parser.new.parse thing end |