defunkt / tomdoc

A TomDoc Ruby library.
http://tomdoc.org/
MIT License
114 stars 16 forks source link

Only generates documentation for the first method #32

Closed nicholasjhenry closed 5 years ago

nicholasjhenry commented 11 years ago

Version 0.2.5

The following example only generates documentation for the first method:

class Simple
  # Just a simple method.
  #
  # text - The String to return.
  #
  # Returns a String.
  def string(text)
    text
  end

  # Just another simple method.
  #
  # text - The String to return.
  #
  # Returns a String.
  def another_string(text)
    text
  end
end

Actual:

--------------------------------------------------------------------------------
Simple#string(text)

Just a simple method.

text - The String to return.

Returns a String.

Expected:

--------------------------------------------------------------------------------
Simple#string(text)

Just a simple method.

text - The String to return.

Returns a String.

Simple#another_string(text)

Just another simple method.

text - The String to return.

Returns a String.