mixin Callback module

observers should now be registered directly onto vm object

example updated to reflect changes
This commit is contained in:
2023-07-28 18:51:15 +01:00
parent 0fd4f49670
commit eaa9436081
6 changed files with 21 additions and 22 deletions

View File

@@ -5,7 +5,7 @@ class Main
def initialize(vm)
@vm = vm
@vm.callback.register(self)
@vm.register(self)
end
def run