Method: Rugged::Object#type
- Defined in:
- ext/rugged/rugged_object.c
#type ⇒ Object
Returns the object’s type. Can be one of :commit
, :tag
, :tree
or :blob
.
380 381 382 383 384 385 386 |
# File 'ext/rugged/rugged_object.c', line 380
static VALUE rb_git_object_type_GET(VALUE self)
{
git_object *object;
TypedData_Get_Struct(self, git_object, &rugged_object_type, object);
return rugged_otype_new(git_object_type(object));
}
|