Skip to content
Poignant Guide Ruby Q&A
Sections

hash

1 thread tagged with this topic

Threads tagged hash

  1. ✓

    What is a symbol in Ruby, and when should I use one instead of a string?

    A symbol is a name that Ruby keeps as one shared object, written with a colon like :name. Use a symbol for labels that identify something, such as hash keys...

    Ruby syntax and basicsOdile MarchettiStaff answer
    0replies
Poignant Guide Ruby Q&A. Questions and answers on learning Ruby and programming: syntax, blocks, objects, gems, Rails, debugging and reading the Poignant Guide.