From 18d291c6eb3812c832ce52a00870378396cdf4fa Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 26 Jul 2023 10:18:32 +0100 Subject: [PATCH] rename info to infostring, now returns a string --- examples/events/main.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/events/main.rb b/examples/events/main.rb index 7621c2e..ba4eecd 100644 --- a/examples/events/main.rb +++ b/examples/events/main.rb @@ -11,7 +11,7 @@ class Main @e_client = OBSWS::Events::Client.new(**kwargs) @e_client.add_observer(self) - puts info.join("\n") + puts infostring @running = true end @@ -19,14 +19,14 @@ class Main sleep(0.1) while running end - def info + def infostring resp = @r_client.get_version [ "Using obs version:", resp.obs_version, "With websocket version:", resp.obs_web_socket_version - ] + ].join("\n") end def on_current_program_scene_changed(data)