ruby-uebungen/Assignment_032/solution
Thomas Smits fe2c1c6eb6 Update of exercises 2023-05-25 17:47:19 +02:00
..
readme.md Update of exercises 2023-05-25 17:47:19 +02:00

readme.md

Lösung: Klassen per Reflection analysieren

















































































```ruby def analyze(clazz) puts "Name: #{clazz.to_s}" puts "Elternklasse: #{clazz.superclass}" puts "Instanz-Methoden: #{clazz.instance_methods}" puts "Statische-Methoden: #{clazz.singleton_methods}" puts "Konstanten: #{clazz.constants}" end

analyze(String)