diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/nodes/mapping.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/psych/nodes/mapping.rb b/lib/psych/nodes/mapping.rb index b1137e1..0f47e89 100644 --- a/lib/psych/nodes/mapping.rb +++ b/lib/psych/nodes/mapping.rb @@ -3,6 +3,18 @@ module Psych ### # This class represents a {YAML Mapping}[http://yaml.org/spec/1.1/#mapping]. class Mapping < Psych::Nodes::Node + # The optional anchor for this mapping + attr_accessor :anchor + + # The optional tag for this mapping + attr_accessor :tag + + # Is this an implicit mapping? + attr_accessor :implicit + + # The style of this mapping + attr_accessor :style + def initialize anchor, tag, implicit, style super() @anchor = anchor |