odd number list for Hash

Probably a typical Java Programmer goes Ruby problem:

odd number list for Hash

So what is wrong with this method

def User.hash(a_string) {
… some code here
}

Im so used to Java Syntax i did not see the problem for some minutes!
In Ruby curly braces are used for Hashes and Blocks… that’s it. Just use def and end. Done!. No curly braces.
(Of course having aproblem relating• to Hash in a method called hash did not make my life easier :-) )

Comments

My blog is famous

Comments

acts_as_tree

Comments

Scrum

Comments

Comments

Ruby on Rails on OS X

Comments (2)

Scrum and XP from the Trenches

Comments (1)

Contractor is missing features …

Comments

Java and MIDI

Comments

hibernate 2.1x and Blobs

Comments (2)

« Previous entries · Next entries »