Clean fresh pineapple, cut it into round slices, cut the slices into smaller pieces. If necessary, drain the excess juice. If the pineapple is canned, gently rinse the slices from the syrup, drain. Set aside.
Whisk with hand mixer the eggs, sugar and vanilla extract for 2-3 minutes until the mixture is thick.
Add butter and mix for 8 minutes until the mixture becomes even and foamy.
Combine flour with baking powder and, in a separate bowl, milk with rum.
Add flour and milk and rum alternately to the egg and butter mixture; stir and combine after each addition.
Add pineapple and coconut flakes to the cake mixture; stir and combine.
Spoon the mixture into greased and floured bundt mold, and bake in the oven at 180˚C for 45-50 minutes or until done.
Take the cake out of the oven, immediately soak with rum, and cover it with aluminum foil. Let it cool in the mold for about 20 minutes.
Then remove the cake from the pan, and if you wish, sprinkle with powdered sugar, and allow it to cool completely.