Symbolic Validations

1 · Jan Lelis · May 9, 2016, midnight
When exactly don't you have to :"escape" a Ruby symbol? Because this question is somehow related to the Ruby interpreter's internal usage of symbols, the rules are not the most obvious ones: : + Identifier¹, optionally appended by !, ?, or = (→ methods) :@ + Identifier¹ (→ instance variables) :@@ + Identifier¹ (→ class variables) :$ + Identifier¹ (→ global variables) :$ + Single identifier¹ character or 0-9 (→ Perl-style special variables) :$- + Single identifier¹ character or 0-9 (→ Ruby inte...