summaryrefslogtreecommitdiff
path: root/lib/psych.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-27 01:13:22 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-27 01:13:22 -0700
commit6d0f682f6ab3289c3150d1da120b1d90e6913e0b (patch)
treedeadc1d3f739db7b95a0072aa73a5133c7bd37cb /lib/psych.rb
parent70467fb3e4611559138d016e61e0388ae1c52a56 (diff)
downloadpsych-6d0f682f6ab3289c3150d1da120b1d90e6913e0b.zip
folded scalars
Diffstat (limited to 'lib/psych.rb')
-rw-r--r--lib/psych.rb8
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