[Nitro] Annotations

George Moschovitis george.moschovitis at gmail.com
Fri Nov 17 08:17:07 EST 2006


Hello Tom,

I would like to make Og work like this:

class Article
  attr_accessor :title
  attr_accessor :hits
end

class Article
  ann :title, String
  ann :hits, Fixnum
end

be equivalent to:

class Article
  attr_accessor :title, String
  attr_accessor :hits, Fixnum
end

I would appreciate it if you had a look at:

glue/attribute.rb
glue/attributeutils.rb

and suggest ideas how this could be elegantly done.

thanks in advance,
George


-- 
http://blog.gmosx.com
http://nitroproject.org


More information about the Nitro-general mailing list