摘要:
Dogs have many shared characteristics, like the abilities to wag their tails and drink water from a bowl, but they also have information about them th 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
http://ruby-doc.org/core-2.2.0/Array.html#method-i-compact compact → new_aryclick to toggle source Returns a copy of self with all nil elements remove 阅读全文
摘要:
# -*- encoding : utf-8 -*- class InterfaceBaseController = '2.1.0' elsif ua == '111' '1.8.0' if version >= '1.1.1' end @version ||= version ... 阅读全文