Need help for bricks wall generator

l am new in ruby and i am working on bricks generator plugin it’s like floor generator but i want it to support any formes : faces , curves and respect angles
so i am looking for any help or suggestions to programming the code
thanks

Your question is too broad to formulate a meaningful answer.

Here are a couple places to start:

Looks like Iwill have to learn Ruby in my spare time to go along with the Sketch up Make 2016 vesion … good thing it is free in the Ubuntu Resources Center