summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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