How to hide view source code from yard documentation?

563 Views Asked by At

Iam using yard for documentation in my project but i don't want to show my source source to the users. Is there a way to hide source code in yard.

1

There are 1 best solutions below

0
On

From the YARD mailing list:

[my_templates/default/method_details/setup.rb]

def source
  return
end

[…]

Then run with 'yard -p my_templates'