Introspection: Lesender Zugriff

Ein Programm hat lesenden Zugriff auf sich selbst:

Typinformationen Informationen über Klassen, deren Attribute, und Operationen Vererbungshierarchie

Dyn. Aufruf von Methoden oder Instantiierung von Klassen

a = /(\d:\d):\d/
b = Regexp.new("(\d:\d):\d")

puts a.class.instance_methods

Ergebnis:
kcode
casefold?
==
===
options
inspect
~
match
eql?
copy_object
to_s
=~
hash
source

reflection.rb