Class: Barracuda::Type
Instance Method Summary
collapse
Constructor Details
#initialize(object) ⇒ Object
227
228
229
230
231
232
|
# File 'ext/barracuda.c', line 227
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
234
235
236
237
238
239
|
# File 'ext/barracuda.c', line 234
static VALUE
type_method_missing(VALUE self, VALUE type)
{
data_type_set(self, type);
return self;
}
|
Instance Method Details
241
242
243
244
245
|
# File 'ext/barracuda.c', line 241
static VALUE
type_object(VALUE self)
{
return rb_ivar_get(self, id_object);
}
|