Additional to the syntax for creating hashes we all know:
hash = { :first => "ruby", :second => "rails" }
# => {:first=>"ruby", :second=>"rails"}
hash[:first] # => "ruby"…Ruby > 1.9.1 adds support for another syntax:
hash = { first: "ruby", second: "rails" }
# => {:first=>"ruby", :second=>"rails"}
# you still have to access a value via a symbol
hash[:second] # => "rails"
hash[second] # NameErrorYou can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.