view test/@Dork/set.m @ 12385:c468c5b902b3 release-3-4-x ss-3-3-92

version is now 3.3.92
author John W. Eaton <jwe@octave.org>
date Sun, 06 Feb 2011 06:27:19 -0500
parents f9ab19428cd8
children
line wrap: on
line source

function [ s ] = set( s, varargin )

  propArgs = varargin;
  while (length(propArgs) >= 2)
    propName  = propArgs{1};
    propValue = propArgs{2};
    propArgs  = propArgs(3:end);
    switch propName
      case 'gack'
        s.gack = propValue;
      otherwise
        s.Snork = set(s.Snork, propName, propValue);
    end
  end

end