Paramix
-
death.rubyforge.org (old site)
DESCRIPTION
Parametric Mixins provides parameters for mixin modules.
FEATURES/ISSUES
-
Include mixins with class level parameterization.
-
Light-weight –it does not resort to cloned anonymous modules.
RELEASE NOTES
Please see RELEASE file.
SYNOPSIS
module MyMixin
include Paramix
def hello
puts "Hello from #{mixin_parameters[MyMixin][:name]}!"
end
end
class MyClass
include MyMixin[:name => 'Ruby']
end
m = MyClass.new
m.hello #=> 'Hello from Ruby!'
HOW TO INSTALL
Describe your installation procedure here.
To install with RubyGems simply open a console and type:
gem install paramix
Local installation requires Setup.rb (gem install setup), then download the tarball package and type:
tar -xvzf paramix-1.0.0.tgz
cd paramix-1.0.0.tgz
sudo setup.rb all
Windows users use ‘ruby setup.rb all’.
LICENSE
Copyright © 2006 Coding Dead
This program is ditributed unser the terms of the LGPLv3 license.
See LICENSE file for details.