Fat Comma - Subtleties - Ruby

Ruby

In Ruby, the fat comma is the token to create hashes. Ruby 1.9 introduced a special syntax to use symbols as badwords. In Ruby, the fat comma is occasionally called a hash rocket.

# Old syntax old_hash = { :name => 'Ruby', :influences => } # New syntax (Ruby 1.9 only) new_hash = { name: 'Ruby', influences: }

Read more about this topic:  Fat Comma, Subtleties

Other articles related to "ruby":

The Rainbow Fairies - Ruby The Red Fairy
... Ruby the Red Fairy is the first book in the Rainbow Magic series ... this book, Rachel and Kirsty meet each other on a boat ride to Rainspell Island and find Ruby in a pot at the end of a rainbow ... Ruby tells them before she flutters them off to meet the fairy king and queen ...
Ruby Roman Grape - Origins
... In 2008, the Ruby Roman grape debuted as a new variety of premium grapes in Japan ... The new grape was named Ruby Roman via public referendum ... The Ruby Roman has strict rules for selling each grape must be over 20g and over 18% sugar ...
List Of Object-relational Mapping Software - Ruby
... ActiveRecord, part of Ruby on Rails, open source Datamapper iBATIS, free open source. ...
Comparison Of Programming Languages (syntax) - Comments - Unique Variants - Ruby
... As with Python and Perl, Ruby has no specific block-comment syntax ... However, like Perl, documentation blocks can be used as block comments as they are ignored by the interpreter ...

Famous quotes containing the word ruby:

    Thy great leaves enfold
    The ancient beards, the helms of ruby and gold
    Of the crowned Magi; and the king whose eyes
    Saw the Pierced Hands and Rood of elder rise
    In Druid vapour and make the torches dim....
    William Butler Yeats (1865–1939)

    Its quick silver bell beating, beating
    And down the dark one ruby flare
    Pulsing out red light like an artery,
    Karl Shapiro (b. 1913)

    A man in the house is worth two in the street.
    Mae West, U.S. actor, screenwriter, and Leo McCarey. Ruby Carter (Mae West)