A code generator?

P

Pedro Del Gallego

Hi,
I am in a not rails project. I want to generate some struct-dumb-code
in ruby that is going to be heavily changed. Right now, i did it using
rails script/generate.

My question is, is out there any good code-generator for ruby ?

Is there a good way to use the rails generator to build out-rails-code?

BTW we are thinking in create a house-code-generator. Any good
article/video on this topic

Thanx

PS: I think i made double posting everytime a mail to the list bur i
dont know why :( Sorry for that
 
M

Mat Schaffer

Hi,
I am in a not rails project. I want to generate some struct-dumb-code
in ruby that is going to be heavily changed. Right now, i did it using
rails script/generate.

My question is, is out there any good code-generator for ruby ?

Is there a good way to use the rails generator to build out-rails-
code?

BTW we are thinking in create a house-code-generator. Any good
article/video on this topic

First, how about creating an in-house gem rather than code
generation? If generated code has bugs, fixing it can be a pain.

But if you think it's the best solution I recommend erb, which is
what the rails generations are based on.

Hope that helps!
Mat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,235
Messages
2,571,181
Members
47,818
Latest member
KazukoXea6

Latest Threads

Top