سؤال

Yard has a tag @!method to describe documentation for instance methods that are created dynamically. Is there a similar tag for class methods?

هل كانت مفيدة؟

المحلول

YARD provides @!scope tag to set scope of methods. So use @!method first and as subtag @!scope (http://rubydoc.info/docs/yard/file/docs/Tags.md#scope).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top