A code generator?

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 :frowning: Sorry for that

···

--
-------------------------------------
Pedro Del Gallego

Email : pedro.delgallego@gmail.com

PS: I think i made double posting everytime a mail to the list bur i
dont know why :frowning: Sorry for that
--
-------------------------------------
Pedro Del Gallego

Double posting?

Harry

···

--

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

···

On Feb 27, 2007, at 9:41 PM, Pedro Del Gallego wrote:

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

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

Ruby itself is a good code-generator for Ruby...

Search on Google for "ruby meta programming".

gegroet,
Erik V. - http://www.erikveen.dds.nl/