Project

mme_tools

0.0
No commit activity in last 3 years
No release in over 3 years
generic classes and methods that may be used everywhere
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 5.0.0
>= 0

Runtime

>= 0
 Project Readme

to be updated …

mme_tools¶ ↑

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

Usage¶ ↑

There are some ‘specialized’ modules:

  • MMETools::Concurrent. Some thread save methods thread

  • MMETools::Config. A class that eases configure apps

  • MMETools::Debug. A convenient print_debug method

  • MMETools::Enumerable. Some methods that I use with arrays

  • MMETools::ArgsProc. Methods to process args for methods and initializers.

  • MMETools::Webparse. Methods to cleanup dirty strings from websites

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.