2.0 Design Patterns in Ruby


Second part describes the main moments in ruby. Some interesting things.

Anybody know how to use %q and %Q. But what is the difference. %Q - creates double quotes and %q creates single quotes.

That is the difference from rescue and raise
Rescue catch the error. And raise - create new Error in your condition

require ‘account.rb’ -  you can use class from account.rb like it is described in the same file.

Comments