If I have one file , follow these steps:
module Something
class Resource
def self.property(name, type) end
end
class Post < Resource
property :title, String
property :view_count, Integer
end
end
Methods propertydefined with the correct documentation. However, if I have these definitions in separate files, the documentation is not created properly, for example, in the following case:
file0.rb:
require 'file1.rb'
require 'file2.rb'
file1.rb:
module Something
class Resource
def self.property(name, type) end
end
end
file2.rb:
module Something
class Post < Resource
property :title, String
property :view_count, Integer
end
end
If Yard macros are not transferred in separate files when creating documentation. How to enable this?
source
share