From: djberg96@... (Daniel Berger) Date: 2004-05-10T01:03:55+09:00 Subject: [ANN] interface 0.1.0 Hi all, It is with some trepidation that I announce the first release of the interface module. What is it? =========== Java style interfaces for Ruby. For example: require "interface" MyInterface = interface{ required_methods :foo, :bar } # raises an Interface::MethodMissing error class A include MyInterface end # Also raises an error class B; end b = B.new b.extend(MyInterface) # No error raised class C def foo; end def bar; end include MyInterface end See the docs for more details, including a way to implement a partial interface. Where is it? ============ You can find it on the RAA or the project home page at http://ruby-miscutils.sf.net. Why did I do it? ================ Mainly to silence the Java weenies and to show that it was possible. See the README for the long version. I, personally, do not find interfaces to be especially useful, but here you go. Enjoy! (or not) Dan