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 G.

Email : [email protected]

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


Pedro Del G.

Double posting?

http://www.ruby-forum.com/topic/32110#6789

Harry

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

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

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/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs