ruby-uebungen/Assignment_038/solution
Thomas Smits 25d5ac7ffd Initial commit 2023-05-23 09:19:31 +02:00
..
readme.md Initial commit 2023-05-23 09:19:31 +02:00

readme.md

Lösung: Klasse dynamisch erzeugen

















































































```ruby def create_class(super_class) Class.new(super_class) do def who_am_i puts "Ich bin ein Kind von #{self.class.superclass}" end end end

Test = create_class(Object) t = Test.new t.who_am_i