This website requires JavaScript.
Explore
Help
Sign In
smits
/
ruby-uebungen
Watch
1
Star
3
Fork
You've already forked ruby-uebungen
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fe2c1c6eb6
ruby-uebungen
/
Assignment_032
/
solution
/
readme.md
713 B
Raw
Blame
History
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)