1. Technology

Articles related to ruby symbols

Symbols - Ruby - About.com
Symbols. Symbols are used everywhere in Ruby code. They're most often used as hash keys, but in various other places as well. Most new Rubyists know ...
The Magic of Symbol#to_proc - Ruby - About.com
The Symbol#to_proc method is a shortcut or convenience method used in a ... When you pass an object as an explicit block parameter, Ruby first checks to see  ...
What's new in Ruby 2.1.0: Strings - About.com
Among Ruby 2.1.0's changes are a few additions to Ruby's String capabilities. ... Frozen strings are created once, and are immutable just like symbols, but all of ...
Hashes - Ruby - About.com
Ruby will generate unique numbers based on this key (remember, the key can be any object, but is typically a String or Symbol) that index a "hash bucket," or ...
40th Anniversary Celebration Suggestions and Ideas
Here are some 40th wedding anniversary ideas and symbols to help you choose gifts associated with your 40th ruby marriage anniversary that will be both ...
Method for Mapping the Values of an Array - Ruby - About.com
Iterating over arrays isn't the only trick up Ruby's sleeve. Having the ability to map ... Say you have an array of symbols, as well as a hash. For each symbol in the ...
What is the Difference Between alias and ... - Ruby - About.com
But, thankfully, you can at least make this look a bit more Ruby-like by using symbols, the alias method seems to like symbols just fine. So you could say alias  ...
Optional Method Parameters with Hashes - Ruby - About.com
Ruby provides a mechanism for optional method parameters. However, this mechanism is not very flexible. Take look at the following example. #!/usr/bin/env  ...
Serialization in Ruby: YAML - About.com
Loading this into a Ruby program will result in a hash. There will be three ... Symbols are only one extra character, but strings are more often used. Be aware that ...
Hash Quick Reference - Ruby - About.com
As Ruby releases move forward, more and more methods get added to the base ... The keys in this example are all symbols, as this is idiomatic Ruby, but the ...
1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  10      Next

©2014 About.com. All rights reserved.