EasyPattern

Rubygem for building Pattern/Data Structure . Supports custom templates by any language. Good tools for learning Pattern/Data Structure.

Useage

simple model *pattern [tempate_dir] [main_class_name] [-d target_dir] *pattern [-t tempate_dir] [-d target_dir(“.” is default)] [-c classes_name] [-op operations_name] complex model (not support now.) *pattern -f pattern_file

example:

simple model:

  • pattern ruby.composite Task -d target

  • pattern -t ruby.composite -d target -c Task;CompositeTask;AddDryIngredientsTask,MixTask,AddLiquidsTask;MakeBatterTask,MakeCakeTask -op get_time_required

complex model(pattern_file):

Future

Sharing pattern templates on website.

Version

0.9.4

  1. Refactoring the code

  2. Template of ruby.composite work

  3. Getting help with no parameter

  4. Replacing lower_case name . Example: class_name:Task lc_class_name:task

Question

If you get some Questions. Mailto :[email protected]

Author

Copyright 2010 @ weizhao mailto: [email protected]

licese

This library and all associated materials are releassse under the terms of version 2 of the GNU Public License(www.gnu.org/copyleft/gpl.html).