摘要: map is another extremely useful Ruby iterator. It helps us map data from one form to another. It will return a new Array containing the result of runn 阅读全文
posted @ 2016-04-30 17:30 冰凌花花~ 阅读(132) 评论(0) 推荐(0)
摘要: While Ruby’s each method is useful, it also comes with an awesome extended family of methods that are even more powerful! For the next few examples, w 阅读全文
posted @ 2016-04-30 17:22 冰凌花花~ 阅读(203) 评论(0) 推荐(0)
摘要: Rather than using Strings as the keys in a Hash, it’s better practice to use Symbols. Symbols are just like Strings except they’re faster and take up 阅读全文
posted @ 2016-04-30 14:35 冰凌花花~ 阅读(145) 评论(0) 推荐(0)