to be updated …

mme_tools

Sparse homeless methods that haven’t found their home, … at present

Usage

There are some ‘specialized’ modules:

To use any of them you can …

require 'rubygems'
require 'mme_tools/enumerable'

or all of them

require 'rubygems'
require 'mmetools'

A soon as modules are required, you can use its methods directly as class methods like:

MMETools::Enumerable.compose(%w(a b), %w(A B), (1..2).to_a)
# => [["a", "A", 1], ["b", "B", 2]]

or include them in your classes to access methods through instances

class MyClass
include MMETools::Enumerable
end

x=MyClass.new
x.compose(%w(a b), %w(A B), (1..2).to_a)
# => [["a", "A", 1], ["b", "B", 2]]

Copyright © 2011 Marcel Massana. See LICENSE.txt for further details.