Sha256: 25c39d4d5fe580ad11846766f19bfa327e8a5b37b4324eb026e03d03ed0838ef

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

Quick Description
=================
This module provides Java style interfaces for Ruby, including a fairly
similar syntax.  I don't necessarily believe in interfaces, but I wanted to
put it out there as proof that it could be done.  Frankly, Java needs mixins
more than Ruby needs interfaces, but here you go.

Installation
============
ruby install.rb (may require root access)

A bit about how this module came to be
======================================
A discussion on IRC with Mauricio Fernandez got us talking about traits.
During that discussion I remembered a blog entry by David Naseby.  I revisited
his blog entry (at http://homepages.ihug.com.au/~naseby/33.html) and took
a closer look.

Keep in mind that I also happened to be thinking about Java at the moment
because of a recent job switch that involved coding in Java.  I was also
trying to figure out what good interfaces were.

As I read the first page of David Naseby's article I realized that,
whether intended or not, he had implemented a rudimentary form of interfaces
for Ruby.  When I discovered this, I talked about it some more with Mauricio
and he and I (mostly him) fleshed out the rest of the module, including some
syntax improvements.  The result is syntax and functionality that is nearly
identical to Java.

I should note that, although I am listed as the author, this was mostly the
combined work of David Naseby and Mauricio Fernandez.  I just happened to be
the guy that put it all together.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carats-0.3.0 lib/carat-dev/interface_work/SCRAP/j-interface/interface-0.1.0/README