From 4d27d1389b36d76fb3d45b23c53eccb565f815c5 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: http://svn.ruby-lang.org/repos/ruby/trunk@3889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/yaml/basenode.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/yaml/basenode.rb b/lib/yaml/basenode.rb index 341177a97..e88a76f3d 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