Class: Pgplot::PgCursor

Inherits:
Object
  • Object
show all
Defined in:
ext/rb_pgplot.c

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



845
846
847
848
849
850
851
852
# File 'ext/rb_pgplot.c', line 845

static VALUE pgcursor_initialize(int argc, VALUE *argv, VALUE obj)
{
  VALUE x, y, ch;

  rb_scan_args(argc,argv, "21", &x,&y,&ch);
  pgcursor_init(obj,x,y,ch);
  return Qnil;
}

Instance Method Details

#to_aryObject



863
864
865
866
867
868
# File 'ext/rb_pgplot.c', line 863

static VALUE pgcursor_to_ary(VALUE obj)
{
  return rb_ary_new3( 3, rb_ivar_get(obj, id_x),
		         rb_ivar_get(obj, id_y),
		         rb_ivar_get(obj, id_char) );
}