A list of current databases

Is there a command in rails whic will allow me to list the number of
databases
and dump them into an array i.e.

list_of_db = ActiveRecord:Base.list_db()

that would be great!

is there any thing like that?

Cheers.
Dan.