Method: Rugged::OdbObject#type

Defined in:
ext/rugged/rugged_repo.c

#typeSymbol

Return a Ruby symbol representing the basic Git type of this object. Possible values are :tree, :blob, :commit and :tag.

odb_obj.type #=> :tag

Returns:

  • (Symbol)
[View source]

99
100
101
102
103
104
# File 'ext/rugged/rugged_repo.c', line 99

static VALUE rb_git_odbobj_type(VALUE self)
{
	git_odb_object *obj;
	TypedData_Get_Struct(self, git_odb_object, &rugged_odb_object_type, obj);
	return rugged_otype_new(git_odb_object_type(obj));
}