# HG changeset patch # User Rik # Date 1396881988 25200 # Node ID 2631484789cfa76fe6ee8b280f393bf86a07b231 # Parent 6a4b7ccc60b1dce466700d1f1ef6f90266bf6fd5 doc: Improve docstrings for isobject, ismethod, isprop. * ov-class.cc (Fisobject): Add seealso link to isprop. * ov-class.cc (Fismethod): Use 'obj' as the input variable name, rather than just 'x'. * isprop.m: Use 'obj' as the input variable name, rather than just 'h'. Add note that 'obj' may be a class object or a handle to a graphics object. diff -r 6a4b7ccc60b1 -r 2631484789cf libinterp/octave-value/ov-class.cc --- a/libinterp/octave-value/ov-class.cc Sun Apr 06 13:38:15 2014 -0700 +++ b/libinterp/octave-value/ov-class.cc Mon Apr 07 07:46:28 2014 -0700 @@ -2044,7 +2044,7 @@ "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} isobject (@var{x})\n\ Return true if @var{x} is a class object.\n\ -@seealso{class, typeinfo, isa, ismethod}\n\ +@seealso{class, typeinfo, isa, ismethod, isprop}\n\ @end deftypefn") { octave_value retval; @@ -2059,8 +2059,8 @@ DEFUN (ismethod, args, , "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {} ismethod (@var{x}, @var{method})\n\ -Return true if @var{x} is a class object and the string @var{method}\n\ +@deftypefn {Built-in Function} {} ismethod (@var{obj}, @var{method})\n\ +Return true if @var{obj} is a class object and the string @var{method}\n\ is a method of this class.\n\ @seealso{isprop, isobject}\n\ @end deftypefn") diff -r 6a4b7ccc60b1 -r 2631484789cf scripts/plot/util/isprop.m --- a/scripts/plot/util/isprop.m Sun Apr 06 13:38:15 2014 -0700 +++ b/scripts/plot/util/isprop.m Mon Apr 07 07:46:28 2014 -0700 @@ -17,11 +17,14 @@ ## . ## -*- texinfo -*- -## @deftypefn {Function File} {@var{res} =} isprop (@var{h}, "@var{prop}") -## Return true if @var{prop} is a property of the object with handle @var{h}. +## @deftypefn {Function File} {@var{res} =} isprop (@var{obj}, "@var{prop}") +## Return true if @var{prop} is a property of the object @var{obj}. ## -## @var{h} may also be an array of handles in which case @var{res} will be a +## @var{obj} may also be an array of objects in which case @var{res} will be a ## logical array indicating whether each handle has the property @var{prop}. +## +## For plotting, @var{obj} is a handle to a graphics object. Otherwise, +## @var{obj} should be an instance of a class. ## @seealso{get, set, ismethod, isobject} ## @end deftypefn