view test/classes/@Cork/get.m @ 20354:227d582fa300 stable

build: Sort generated PKG_ADD contents consistently * libinterp/mk-pkg-add: Set LC_COLLATE=C when sorting for consistent output.
author Mike Miller <mtmiller@octave.org>
date Fri, 10 Jul 2015 01:10:30 -0400
parents b1283d4c06c2
children
line wrap: on
line source

function v = get (s, propName)

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

end