Ruby/Reflection/local variables

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск

Use Kernel"s local_variables method

$ship = "P"
@friend_1 = "M"
@friend_2 = "J"
bad_chap = "G"
p local_variables