summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-27 16:01:17 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-27 16:01:17 -0700
commite86f1a64f7e905442d331b242ad4fe60eafe49a6 (patch)
tree59ba6cf8615a803d9f4374afa2904eb6e517fa16 /lib
parente01fc9ede64a82bcd1fc60ba5aba6c02e892e2f6 (diff)
downloadpsych-e86f1a64f7e905442d331b242ad4fe60eafe49a6.zip
mapping start tested
Diffstat (limited to 'lib')
-rw-r--r--lib/psych.rb5
-rw-r--r--lib/psych/parser/handler.rb3
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index 812891e..0151e9f 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -24,6 +24,11 @@ module Psych
BLOCK_SEQUENCE_STYLE = 1
FLOW_SEQUENCE_STYLE = 2
+ # Mapping Styles
+ ANY_MAPPING_STYLE = 0
+ BLOCK_MAPPING_STYLE = 1
+ FLOW_MAPPING_STYLE = 2
+
def self.parse thing
Psych::Parser.new.parse thing
end
diff --git a/lib/psych/parser/handler.rb b/lib/psych/parser/handler.rb
index 4c87fff..1be1dd2 100644
--- a/lib/psych/parser/handler.rb
+++ b/lib/psych/parser/handler.rb
@@ -40,6 +40,9 @@ module Psych
def end_sequence
end
+ def start_mapping anchor = nil, tag = nil, implicit = true, style = BLOCK_MAPPING_STYLE
+ end
+
###
# Called when the YAML stream ends
def end_stream