Hi,

Lately I've been working with external API's and when writing tests I've found 
it extremely useful to have an abstract class (or something like a java 
interface) so that I can have an actual implementation for production and dev, 
and a dummy one that does not use the real API for tests. But since ruby does 
not provide abstract classes, I had to implement it throw some metaprogramming 
at it and use it as a mixin.

I think this is clearly an overkill for something that would probably be useful 
for many people. Is there any better way to achieve this goal? And do you think 
this would be a good feature to add to rails or ruby?


Regards,
Luís Ferreira



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to