Skip to content

Instantly share code, notes, and snippets.

View Pauloparakleto's full-sized avatar

Paulo Felipe Souza Pauloparakleto

View GitHub Profile
@Pauloparakleto
Pauloparakleto / class_var_ex.rb
Created July 22, 2022 13:55 — forked from sumanmukherjee03/class_var_ex.rb
Messing with class variables in ruby
# Execute this file as follows and compare the results in ruby 1.8.*:
#
# ruby class_var_ex.rb
# ruby class_var_ex.rb "include module"
# ruby class_var_ex.rb "include module" "include global"
# ruby "include global"
@@test = 9 if ARGV.last == "include global"
module X