I recently pushed a YARD plugin to GitHub (http://github.com/postmodern/yard-dm) containing some custom Handlers for parsing DataMapper "property", "has" and "belongs_to" statements.

In YARD 0.4.0, the ability to automatically load YARD "plugins" (essentially gems beginning with yard_ or yard- prefix) was added. Once loaded, the new Handler classes within a plugin can be used by YARD to recognize meta-programming statements and register new method-names/classes accordingly.

Currently, the yard-dm plugin should handle most DataMapper code-bases. Although, I know their is still some edge-case syntax not yet supported for the "has" statements.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to