Forum: Ruby RubyInline, RDoc comment for C inline method

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ed9979fe7dd7bcc809cfa79faacaf59e?d=identicon&s=25 Daniel Schömer (Guest)
on 2008-11-02 16:05
(Received via mailing list)
Hi,

I am playing around with RubyInline and want to include
a "inlined" C method to the API documentation generated by rdoc.

Here is an minimal example:

---- a.rb ----
require 'inline'

class A
  # Method A.a1
  inline do |builder|
    # Method A.a2
    builder.c %{
      /*
       * Method A.a3
       */
      int a() {
        return 0;
      }
    }
  end

  # Method A.b
  def self.b
    0
  end
end
---- end of a.rb ----

Calling "rdoc a.rb" generates only the documentation for method
A#b, not A#a.

Is it possible to let rdoc generate the documentation for A#a?
If so, how?

Daniel
This topic is locked and can not be replied to.