view test/@Spork/get.m @ 11264:79b77d71d01e

subsindex.m: Fix typo in doc-string.
author Ben Abbott <bpabbott@mac.com>
date Wed, 17 Nov 2010 20:17:10 -0500
parents f9ab19428cd8
children
line wrap: on
line source

function [ v ] = get( s, propName )

    switch propName
        case 'geek'
            v = s.geek;
        otherwise
            error([propName, ' is not a valid Spork property']);
    end

end