As shaz mentioned, Bitmap doesn't have names. If you want to record the name, you can try at least modify the bitmap class something like this
Code:
class Bitmap
attr_reader :name
alias init initialize
def initialize(*args)
if args[0].is_a?(String)
@name = args[0]
end
init(*args)
end
end
Then you can get the name of the bitmap. However, if the bitmap is created from plain integer to determine the size, e.g, Bitmap.new(32,32) then it will not have a name.