Is there any method in Ruby that lists all the global variables available at the checkpoint, like $GLOBALSin php?
$GLOBALS
Yes. There is Kernel#global_variables.
Kernel#global_variables
puts global_variables
Since this is a method from the kernel, you can name it without mentioning the class name.
Source: https://habr.com/ru/post/1734904/More articles:Identifying invalid characters for a filename in Java 6 (not 7!) - javaWebsite performacne. Move the ad download feature (GA_googleFillSlot) at the bottom of the page. - performancehelp in structuring an XML document - xmlwix disable directory browse button - windows-installerGoogle App Engine Authentication - authenticationCannot Connect Visual Studio 2008 to TFS 2010 - tfsIs there a way to prepare a sql statement in Java without using a Connection object? - javaCan a Java class be aware of its instance? - javaExplain this javascript to me - javascriptDo I need a release at dealloc? - objective-cAll Articles