lib/ruby2d/cli/enable_console.rb in ruby2d-0.11.3 vs lib/ruby2d/cli/enable_console.rb in ruby2d-0.12.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# Enable the interactive console
require 'io/wait'
-$ruby2d_console_mode = true
+ENV['RUBY2D_ENABLE_CONSOLE'] = 'true'