RubyInline, RDoc comment for C inline method

  • Thread starter Daniel Schömer
  • Start date
D

Daniel Schömer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top