It would be cool if YARD could generate docs for Hashie::Dash, at a basic list of attributes defined via property.
I created a gist based on the YARD guide for writing handlers, the source for YARD::Handlers::Ruby::AttributeHandler and a few similar handlers I found.
It seems to work, but I haven't completely figured out:
- The AST, to see if I can handle the
:default, or :required properties.
- Trying to scope the handler so it only applies on classes that are a Hashie::Dash (if that's possible)
- If there is a way to package the handler in a way that it's automatically used by http://rubydoc.info/.
It would be cool if YARD could generate docs for Hashie::Dash, at a basic list of attributes defined via
property.I created a gist based on the YARD guide for writing handlers, the source for YARD::Handlers::Ruby::AttributeHandler and a few similar handlers I found.
It seems to work, but I haven't completely figured out:
:default, or:requiredproperties.