iddumied/Utilities — pull request #10 by matthiasbeyer (2012-02-19 18:24:02+00:00)
Title: Code styling

A bunch of Code smartenings and speed-ups especially!

- I think it's faster if you use attr_accessor/reader/writer instead of defining the methods by your own
- code smartenings like using #is_a? instead of getting the class from an Object and comparing it with another
- return statements removed for better readability, additional variables removed.

Why do you do something like
def something
a = 1
return a
end

if you could do
def something
1
end

... its much smarter code!
I also fixed the one-line-blocks and uncompressed it to several lines.
I fixed some typos.
I fixed indention.

I hope you will merge my changes!