ruby-uebungen/Assignment_034/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: 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