aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/ruby/create_ruby_doc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/ruby/create_ruby_doc.rb b/doc/api/ruby/create_ruby_doc.rb
index 1d25ce8a0..06e9c0485 100644
--- a/doc/api/ruby/create_ruby_doc.rb
+++ b/doc/api/ruby/create_ruby_doc.rb
@@ -6,7 +6,7 @@ require 'rdoc/rdoc'
module RDoc
- class C_Parser_Paludis < C_Parser
+ class C_Parser_Paludis < const_defined?(:C_Parser) ? C_Parser : Parser::C
#override C_Parse
parse_files_matching(/\.(c|cc|cpp|CC)$/)