Mercurial > octave-nkf
view test/classes/@Pork/set.m @ 20039:eba80000fa0d rc-4-0-0-2
maint: Bump version number for 4.0.0-rc2.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 20 Mar 2015 16:19:38 -0400 |
parents | b1283d4c06c2 |
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 'gurk' s.gurk = propValue; otherwise s.Spork = set (s.Spork, propName, propValue); end end end