This mini electric stove is from the 1930’s and, yes, it would have cooked food that you could eat.  It was made by Metal Ware Corp, Two Rivers Wisconsin.  The little compartment with the hinge is the stove while the other open part is the element.

2011.49.3