From: Tobias Reif Date: 2002-01-12T07:38:02+09:00 Subject: MetaRuby : RubySchema.rb howto? Hi, in a program that generates Ruby programs, I'd like to use MetaRuby's RubySchema.rb to generate the code. I hope I can use it something like cd = ClassDef.new 'Foo' p cd.to_s # -> "class Foo\nend" this ----------8<---------- $: << 'metaruby/metaruby-0.7' require 'RubySchema.rb' include Ruby ############# #class DefClass < Tuple; fields_are \ # [:name,Any.of IdentConst], # [:supername,IdentConst,NilClass], # # nil: class Foo; end # # other: class Foo) (TypeError) Howto? Tobi -- http://www.pinkjuice.com/