[ANN] dia2code-ruby-0.8.1 (unofficial)

Hi!

I did some work to make dia2code generate ruby code, It works, but i can’t
contact dia2code author to commit some changes to main engine and to add
code_generator_ruby.c. So I’ve decided to put ruby version on my homepage to
get some feedback (i hope somebody need that tool) and maybe to make
something work better.
So that’s what i did:

  • it currently supports generation of: classes, attributes and methods
  • attributes / methods access rights are set in this way:
    attributes:
    attr :bla # or attr_accessor if public
    private :bla
    methods
    def bla(args)
    end
    private :bla
  • i was trying to make generated comments as much rdoc-compatible as i can
    (but unfortunately i’m new to rdoc)
  • dia2code engine is fixed, so it now have information about dia-comments
    for elements
  • check for single-only inheiritance
  • when in dia class implements interface that’s generated in line “include
    Interface”, i know that’s not true meaning of interface, but it’s usefull
    with ruby

Source is placed here: http://lrn.ru/~sdmitry/dia2code-ruby-0.8.1.tar.gz
Any feedback will be appreciated.

···


sdmitry -=- Dmitry V. Sabanin
MuraveyLabs.

really cool! I’ll try it as soon as possible… some hope to see even a
code generator for Umbrello ? :wink:

···

il Mon, 9 Jun 2003 00:03:03 +0900, “Dmitry V. Sabanin” sdmitry@lrn.ru ha scritto::

Hi!

I did some work to make dia2code generate ruby code, It works, but i can’t
contact dia2code author to commit some changes to main engine and to add
code_generator_ruby.c. So I’ve decided to put ruby version on my homepage to
get some feedback (i hope somebody need that tool) and maybe to make
something work better.
So that’s what i did:

I’ll be playing with Umbrello this week, so i think yes
Just one problem - i want to have some syntax-regarding comments about
generated by dia2code files, then i will not make old mistakes in Umbrello
generator.

P.S. sorry for my english :slight_smile:

···

On Monday 09 June 2003 03:57, gabriele renzi wrote:

il Mon, 9 Jun 2003 00:03:03 +0900, “Dmitry V. Sabanin” > > sdmitry@lrn.ru ha scritto::

Hi!

I did some work to make dia2code generate ruby code, It works, but i can’t
contact dia2code author to commit some changes to main engine and to add
code_generator_ruby.c. So I’ve decided to put ruby version on my homepage
to get some feedback (i hope somebody need that tool) and maybe to make
something work better.
So that’s what i did:

really cool! I’ll try it as soon as possible… some hope to see even a
code generator for Umbrello ? :wink:

sdmitry -=- Dmitry V. Sabanin
MuraveyLabs.