From: Steve Klabnik Date: 2010-07-18T11:21:23+09:00 Subject: Re: ruby abstraction --00c09ff7944695ef30048ba01bdb Content-Type: text/plain; charset=ISO-8859-1 There aren't interfaces in Ruby, because Ruby is dynamically typed. So rather than see if an object is of the right type, you ask it if it responds to a certain message, using Object#respond_to? I'm open to the idea that interfaces might not be needed in Ruby but I'd > very much like this properly explained since as a thought-experiment I > propose Java without interfaces would be worse - therefore what is it > specifically about Ruby which means it is not as needed? It comes down to the whole dynamic/static thing. Ruby's philosophy is 'screw the types, does it do what you want or not?' --00c09ff7944695ef30048ba01bdb--