summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-27 20:47:23 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-27 20:47:23 -0700
commit742ee7d2fac9d97beba9aaafca67d8c4879632ba (patch)
tree7949c522dd9b2ff9487e3a3ab64c7acbe341ec0f /lib
parent620ede3207d55689288ea08619f744975138736c (diff)
downloadpsych-742ee7d2fac9d97beba9aaafca67d8c4879632ba.zip
adding accessors to the mapping
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/nodes/mapping.rb12
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