Don’t be discouraged. Ruby is far from the easiest language to learn,
especially when compared to languages like Java (the language itself,
not the complicated frameworks like J2EE). I think Ruby aims to make
hard things easy for advanced programmers, while perhaps falling down a
bit in making easy things easy for junior programmers. As you’ve
seen, passing blocks of code as arguments comes up fairly early in the
reading. This is a fairly advanced idea for someone new to programming.
Ruby also borrows a lot of tricks from languages like PERL which are
famous for cramming entire applications into twenty lines of code. In
many languages it’s considered bad style to do 10 things in one line of
code, but in Ruby it seems par for the course. In my opinion this would
make it especially hard to learn for someone who doesn’t have a
On the other hand, Ruby allows you to do some really cool things which
would be much more difficult or impossible in other languages. Ruby on
Rails, for example.
My advice to you is to use IRB, take small steps, and if you get totally
discouraged, try another language.