Class: Barracuda::Type
Instance Method Summary
collapse
Constructor Details
#initialize(object) ⇒ Object
229
230
231
232
233
234
|
# File 'ext/barracuda.c', line 229
static VALUE
type_initialize(VALUE self, VALUE object)
{
rb_ivar_set(self, id_object, object);
return self;
}
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(type) ⇒ Object
236
237
238
239
240
241
|
# File 'ext/barracuda.c', line 236
static VALUE
type_method_missing(VALUE self, VALUE type)
{
data_type_set(self, type);
return self;
}
|
Instance Method Details
243
244
245
246
247
|
# File 'ext/barracuda.c', line 243
static VALUE
type_object(VALUE self)
{
return rb_ivar_get(self, id_object);
}
|