, . - .
In general, in Ruby, the main use of characters is keys. Symbols :these_things. They are characterized by hash keys ...
{
:name => 'Mary',
:rank => 'Captain'
}
Session keys are also usually characters.
Using strings instead will not hurt anything, but characters are more typical.
Ethan source
share