diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/coder.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/psych/coder.rb b/lib/psych/coder.rb index ae88e4a..c9f9a18 100644 --- a/lib/psych/coder.rb +++ b/lib/psych/coder.rb @@ -25,12 +25,18 @@ module Psych self.scalar = value end - # Emit a sequence with +value+ and +tag+ + # Emit a sequence with +list+ and +tag+ def represent_seq tag, list @tag = tag self.seq = list end + # Emit a sequence with +map+ and +tag+ + def represent_map tag, map + @tag = tag + self.map = map + end + # Emit a scalar with +value+ def scalar= value @type = :scalar |