Class: IO::ConsoleMode
- Inherits:
-
Object
- Object
- IO::ConsoleMode
- Defined in:
- console/console.c
Instance Method Summary collapse
Instance Method Details
#echo=(f) ⇒ Object
646 647 648 649 650 651 652 653 654 655 |
# File 'console/console.c', line 646
static VALUE
conmode_set_echo(VALUE obj, VALUE f)
{
conmode *t = rb_check_typeddata(obj, &conmode_type);
if (RTEST(f))
set_echo(t, NULL);
else
set_noecho(t, NULL);
return obj;
}
|
#initialize_copy(obj2) ⇒ Object
637 638 639 640 641 642 643 644 |
# File 'console/console.c', line 637
static VALUE
conmode_init_copy(VALUE obj, VALUE obj2)
{
conmode *t = rb_check_typeddata(obj, &conmode_type);
conmode *t2 = rb_check_typeddata(obj2, &conmode_type);
*t = *t2;
return obj;
}
|
#raw(*args) ⇒ Object
667 668 669 670 671 672 673 674 675 676 |
# File 'console/console.c', line 667
static VALUE
conmode_raw_new(int argc, VALUE *argv, VALUE obj)
{
conmode *r = rb_check_typeddata(obj, &conmode_type);
conmode t = *r;
rawmode_arg_t opts, *optp = rawmode_opt(&argc, argv, 0, 0, &opts);
set_rawmode(&t, optp);
return conmode_new(rb_obj_class(obj), &t);
}
|
#raw!(*args) ⇒ Object
657 658 659 660 661 662 663 664 665 |
# File 'console/console.c', line 657
static VALUE
conmode_set_raw(int argc, VALUE *argv, VALUE obj)
{
conmode *t = rb_check_typeddata(obj, &conmode_type);
rawmode_arg_t opts, *optp = rawmode_opt(&argc, argv, 0, 0, &opts);
set_rawmode(t, optp);
return obj;
}
|