diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-30 23:09:54 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-30 23:09:54 +0000 |
commit | 38df1a90cc68d132306c9484ed57faa0be656b0e (patch) | |
tree | 82c9f4b85a92300e2c03f3dd4003c78e1bdfbc34 /lib/yaml | |
parent | 1ce0018ba1b26fcb5c8f294d2908a56ef0310464 (diff) |
* ext/syck/rubyext.c (rb_syck_mktime): seconds calculated wrong.
* ext/syck/gram.c: flexibility to anchors and transfer methods on
collections.
* ext/syck/token.c: hex escapes.
* lib/yaml/basenode.rb: YamlNode references changed to YAML::BaseNode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml')
-rw-r--r-- | lib/yaml/basenode.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yaml/basenode.rb b/lib/yaml/basenode.rb index 341177a979..e88a76f3d2 100644 --- a/lib/yaml/basenode.rb +++ b/lib/yaml/basenode.rb @@ -25,7 +25,7 @@ module YAML matches.each { |m| result.push m.last } - YamlNode.new( 'seq', result ) + self.class.new( 'seq', result ) end end @@ -163,7 +163,7 @@ module YAML #puts "DEPTH: #{depth + 1}" deep_nodes = [] match_nodes.each { |n| - if n[1].is_a? YamlNode + if n[1].is_a? BaseNode match_deep = n[1].match_segment( ypath, depth + 1 ) if match_deep match_deep.each { |m| |