Ruby 2.1.5
I've just started learning Ruby.
Could you help me get to know how to work with documentation. This is my example:
some_array = [1, 2, 3, 4, 5]
some_array.each {|value| puts value * 3 }
Frankly speaking I'm an absolute full before I have found explanation in the documentation. I'd like to find everything. For example I can't catch the idea of what is inside the curly braces.
What I understand is that we have a foreach loop here. But I can't catch almost anything else. I'd like to read in the documentation something about: 1. Arrays. 2. each method. 3. Why after each I need {} 4. What is value, why for the first time I need || and then I just use value.
Well, when I answer these questions, I will know how to use the documentation. Now I don't know even where the documentaion is. Could you help me? If yes, could you give me some links and tell me: look here, here, here and here.
Thank you in advance.