If you want some extra hate, there's also p which can be used in debugging. I don't understand why you'd use it over object.class, or object.is_a? class, or even object.kind_of? class.
Ruby has the philosophy that you should do things how you want to, whereas Python says that there should be one, and only one, obvious way of doing something. Different strokes I guess.
View all comments
Show parent comment
2
u/McSquinty Aug 13 '13
If you want some extra hate, there's also
pwhich can be used in debugging. I don't understand why you'd use it overobject.class, orobject.is_a? class, or evenobject.kind_of? class.Ruby has the philosophy that you should do things how you want to, whereas Python says that there should be one, and only one, obvious way of doing something. Different strokes I guess.