From 38df1a90cc68d132306c9484ed57faa0be656b0e Mon Sep 17 00:00:00 2001 From: why Date: Fri, 30 May 2003 23:09:54 +0000 Subject: * 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 --- lib/yaml/basenode.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/yaml') 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| -- cgit v1.2.3