Project

indydoc

0.0
Low commit activity in last 3 years
No release in over a year
Generate source code documentation from source code + Polyrex file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.2, >= 0.2.1
~> 1.14, >= 1.14.2
~> 1.4, >= 1.4.2
 Project Readme

Introducing the indydoc gem

require 'indydoc'

idoc = IndyDoc.new
idoc.parse('/home/james/learning/ruby/temp/simple_number.rb')
puts idoc.to_px

The indydoc gem which is under development is intended to make documenting source code easier, by creating a template outline from the project's defined methods. This template which is a Polyrex file can be used to contain the descriptions, usage examples and comments. The Polyrex file will then be merged with the original source code file to create a well documented source code file.

output

<?xml version="1.0"?>
<doc>
  <summary>
    <project>project1</project>
    <desc> </desc>
  </summary>
  <records>
    <klass>
      <summary>
        <name>SimpleNumber</name>
      </summary>
      <records>
        <def>
          <summary>
            <name>initialize</name>
            <scope>private</scope>
            <desc> </desc>
          </summary>
          <records/>
        </def>
        <def>
          <summary>
            <name>add</name>
            <scope>public</scope>
            <desc> </desc>
          </summary>
          <records/>
        </def>
        <def>
          <summary>
            <name>multiply</name>
            <scope>public</scope>
            <desc> </desc>
          </summary>
          <records/>
        </def>
        <def>
          <summary>
            <name>divide</name>
            <scope>private</scope>
            <desc> </desc>
          </summary>
          <records/>
        </def>
        <def>
          <summary>
            <name>square</name>
            <scope>protected</scope>
            <desc> </desc>
          </summary>
          <records/>
        </def>
      </records>
    </klass>
  </records>
</doc>

Resources

indydoc gem documentation generator