Some alternative ways to write symbols in Ruby code.
Tag: literals
Episode #005: Array Literals
Using strings to build up command lines for execution is error-prone and potentially insecure. Check out why Ruby's %W array-literal syntax is the perfect tool for writing, composing, and executing …
Episode #003: Character Literals
Much like a vestigial tail, Ruby has a character literal syntax which is funny-looking and largely useless. In the interests of completeness, let's see if we can find an excuse …
Episode #001: Binary Literals
In this inaugural episode, a look at a handy syntax for writing out binary numbers.