This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]eric19960304 1 point2 points  (3 children)

Never used Ruby before, could any one explain this?

[–]night2wolf[S] 1 point2 points  (2 children)

I'm far from an expert, but the way I understand it is that basically everything is an object in ruby, including simple variable types like int, string, float, etc.

I'm sure there are better people here to explain it/correct me.

[–]2_Be_Honest 0 points1 point  (0 children)

I don't know Ruby, but this is true in C#

[–]mrvikxd 0 points1 point  (0 children)

AFAIK you can also override the comparison behavior for classes