Book a Demo

Author Topic: Ruby forward engineering  (Read 3505 times)

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Ruby forward engineering
« on: January 24, 2006, 10:24:06 pm »
Hi,

I am exploring the feasibility of a Ruby forward engineering template.

Looking at the EA documentation, to create a new language type, I need to define a type for that language. The example in the documentation used Java which has built-in type like boolean, int, float, char etc..

As a scripting language, Ruby doesn't seems to have type, how do I proceed?

Cheers

thomaskilian

  • Guest
Re: Ruby forward engineering
« Reply #1 on: January 25, 2006, 02:00:58 am »
Add a dummy type

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Ruby forward engineering
« Reply #3 on: January 25, 2006, 10:54:26 pm »
Quote
http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=Automation;action=display;num=1123812219;start=0#0


Cool!

I tried following the instruction but the UI seems different in EA 6.1

I created a new language (Ruby) with a dummy type.

I need to have an open project to add a new language. Does that mean that the new language definition is only available for that project? When I open other project, the Ruby language is not available.

The next step you describe was to import the XML file.
Where do I import it? During the new language creation or in the Code Template Editor?

I am keen to try out your templates with EA 6.1.

Thanks in advance.

Cheers

thomaskilian

  • Guest
Re: Ruby forward engineering
« Reply #4 on: January 26, 2006, 01:04:48 am »
Quote
...
I need to have an open project to add a new language. Does that mean that the new language definition is only available for that project? When I open other project, the Ruby language is not available.
...

Right. This is per project. You can create a technology file (see the help for that) containing all profile information for Ruby. You can then import that technology into any other model.

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Ruby forward engineering
« Reply #5 on: January 26, 2006, 03:41:48 am »
Is there a summarize steps to do all these with respect to version 6.1.

I have downloaded the ruby code template XML file.

What are the steps required?

I have had a read of the Sparx Help Content and found detailed information about each feature but cannot distilled the actual steps required to achieve the desired outcome.

Cheers

thomaskilian

  • Guest
Re: Ruby forward engineering
« Reply #6 on: January 27, 2006, 03:38:05 am »
Not sure about that, but I guess it's a technology file. You can import this via the Resource/MDG Tech. window