As of YARD v0.9.2:
RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure
YARD to automatically build the yri index for installed gems by typing:
yard config --help for more information on RubyGems install hooks.
You can also add the following to your .gemspec to have YARD document your gem