Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3697326
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:50:47+00:00 2026-05-19T04:50:47+00:00

RDoc has the :include: tag (see the bottom of this page ) that will

  • 0

RDoc has the :include: tag (see the bottom of this page) that will take in an arbitrary text file and format as if it was indented wherever the include begins. This is a great way to pull in source code for documentation examples.

Does Yard have a similar tag or feature?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:50:47+00:00Added an answer on May 19, 2026 at 4:50 am

    Currently YARD only supports embedding documentation from other object docstrings in the form:

    class Foo
      # Docstring here
      def method; end
    
      # Here is some more docs and {include:Foo#method}
      def bar; end
    end
    

    File inclusion was vaguely planned but it was never really requested before, so it wasn’t high priority. If you want to open an issue on http://github.com/lsegal/yard/issues — we can make sure it gets tracked and added for the upcoming 0.7.0 release.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After I install colorbox-rails **followed the directions on this page: http://rubydoc.info/gems/colorbox-rails/0.0.9/file/README.rdoc **here is what
I'm trying to generate a RDoc using the XML format. Here's the command that
I've setup the following in my ~/.gemrc file gem: --no-ri --no-rdoc so that when
How do I include a ruby code file, as is, into RDoc? I have
I have written this gem that has more than 10,000 generated classes. While installing
I keep having this problem when trying to run inside directory that has server
Whenever I install gems I see ri and rdoc follow. I know this is
When ever I run make I get this 'uninitialized constant RDoc::RDoc' error rake -T
This question has been asked many times before but it seems everyone else is
Is there something like javadoc or rdoc for documenting YAML files, so that we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.