Class: Pgplot::PgCursor
- Inherits:
-
Object
- Object
- Pgplot::PgCursor
- Defined in:
- ext/rb_pgplot.c
Instance Method Summary collapse
- #initialize(*args) ⇒ Object constructor
- #to_ary ⇒ Object
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_ary ⇒ Object
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) ); } |