I have a class that I create from a factory function as follows:
Cake = MyProject.Struct(:type, :price)
In the yard, it just displays along with my constants:
Cake =
Struct (: type,: price) I want him to appear in the list of "Classes:". After reading the documents, I was convinced that this would work:
# @!parse class Cake; end Cake = MyProject.Struct(:type, :price)
But that literally hasn’t changed anything.
Is it possible for Yard to document dynamically created classes as classes?
ruby rdoc yard
Hubro
source share