Method: Newt::Form::ExitStruct#component
- Defined in:
- ext/ruby_newt/ruby_newt.c
#component ⇒ Object
801 802 803 804 805 806 807 808 809 810 811 |
# File 'ext/ruby_newt/ruby_newt.c', line 801
static VALUE rb_ext_ExitStruct_component(VALUE self)
{
rb_newt_ExitStruct *rb_es;
Data_Get_Struct(self, rb_newt_ExitStruct, rb_es);
if (rb_es->es.reason == NEWT_EXIT_COMPONENT) {
return rb_hash_aref(rb_es->components, PTR2NUM(rb_es->es.u.co));
} else {
return Qnil;
}
}
|