title: How do Ruby programmers do type checking?
body: <p>Since there is no type in ruby, how do Ruby programmers make sure a function receives correct arguments? Right now, I am repeating <code>if object.kind_of</code>/<code>instance_of</code> statements to check and raise runtime errors everywhere, which is ugly. There must be a better way of doing this.</p>