lib/gloo/core/pn.rb in gloo-0.4.0 vs lib/gloo/core/pn.rb in gloo-0.5.0

- old
+ new

@@ -67,11 +67,11 @@ return @src end # Set the object pathname to the given value. def set_to( value ) - @src = value.strip unless value.nil? + @src = value.nil? ? nil : value.strip @elements = @src.nil? ? [] : @src.split( '.' ) end # Convert the raw string to a list of segments. def segments @@ -139,10 +139,11 @@ return Gloo::Core::GlooSystem.new( self ) if self.gloo_sys? parent = self.get_parent return nil unless parent - return parent.find_child( self.name ) + obj = parent.find_child( self.name ) + return Gloo::Objs::Alias.resolve_alias( obj, self.src ) end end end end