You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@michaelherold I haven't played with it much more, but I have used macros to more easily generate documentation.
Macros were useful, but probably not ideal:
I'm not sure if macros can be defined in a gem
There isn't a real way to process the options. So I was creating more specific wrapper methods like required_property and optional_property rather than having a macro that understood property :foo, required: true.
Anyways - I think it would be nice but if it's going to happen it looks like it should be a separate yard-hashie gem, because that's how yard plugins generally work. And also because @lsegal needs to review the plugin if it's going to be enabled on 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:required
properties.The text was updated successfully, but these errors were encountered: