On 22 February 2013 17:13, vo.x (Vit Ondruch) <v.ondruch / tiscali.cz> wrote:

> Reading the documentation, it says "Returns the Symbol corresponding to
> str, creating the symbol if it did not previously exist." So what would
> this method did different? Or is the documentation wrong?
> ----------------------------------------
>

Existing method:
  to_sym: Returns the Symbol corresponding to str, creating the symbol if
it did not previously exist.

New (proposed) method:
  to_existing_sym: Returns the Symbol corresponding to str, raising an
Exception if it did not previously exist.