From ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59 Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 16 Sep 2005 04:14:32 +0000 Subject: making "Type.new" private, and switching to "Type.create", so that i can merge new objects with existing objects and such; converted all files, and tested them git-svn-id: https://reductivelabs.com/svn/puppet/trunk@674 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/ast.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/ast.rb b/lib/puppet/parser/ast.rb index 1918f60e9..a4fcb301a 100644 --- a/lib/puppet/parser/ast.rb +++ b/lib/puppet/parser/ast.rb @@ -646,7 +646,7 @@ module Puppet # should we implicitly iterate here? # yes, i believe that we essentially have to... objnames.collect { |objname| - if object.is_a?(Component) + if object.is_a?(AST::Component) objname = "%s[%s]" % [objtype,objname] objtype = "component" end @@ -990,7 +990,7 @@ module Puppet begin scope.settype(name, - Component.new( + AST::Component.new( :name => name, :args => args, :code => @code -- cgit