S
Sean O'Dell
Ruby/Interface 0.1-1
Homepage/Documentation: http://interface.rubyforge.org/
=== PURPOSE
Ruby/Interface was designed to help developers understand the purpose of Ruby
objects encountered at run-time. Ruby is very dynamic, and it is sometimes
hard to determine what function any given object serves, and the methods to
which it responds to fulfill that function.
Ruby/Interface tries to solve this problem by “tagging†objects as
implementing an interface. The implementation is enforced by comparing an
object’s methods against the methods expected by the interface. When an
object is created from a class which claims to implement an interface, or
which includes a module that does, the object is flagged as properly
implementing that interface so long as its methods take the same number of
parameters as the methods described by the interface.
Sean O'Dell
Homepage/Documentation: http://interface.rubyforge.org/
=== PURPOSE
Ruby/Interface was designed to help developers understand the purpose of Ruby
objects encountered at run-time. Ruby is very dynamic, and it is sometimes
hard to determine what function any given object serves, and the methods to
which it responds to fulfill that function.
Ruby/Interface tries to solve this problem by “tagging†objects as
implementing an interface. The implementation is enforced by comparing an
object’s methods against the methods expected by the interface. When an
object is created from a class which claims to implement an interface, or
which includes a module that does, the object is flagged as properly
implementing that interface so long as its methods take the same number of
parameters as the methods described by the interface.
Sean O'Dell