summaryrefslogtreecommitdiff
path: root/lib/yaml/yamlnode.rb
diff options
context:
space:
mode:
-rw-r--r--lib/yaml/yamlnode.rb6
1 files changed, 3 insertions, 3 deletions
@@ -11,13 +11,13 @@ module YAML
class YamlNode
include BaseNode
attr_accessor :kind, :type_id, :value, :anchor
- def initialize( t, v )
@type_id = t
if Hash === v
@kind = 'map'
@value = {}
- v.each { |k,v|
- @value[ k.transform ] = [ k, v ]
}
elsif Array === v
@kind = 'seq'