Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<%= is not processed correctly in method header example blocks #86

Closed
eclectic923 opened this issue Nov 1, 2011 · 4 comments
Closed
Labels

Comments

@eclectic923
Copy link

The following Rdoc comment is not processed correctly.

# :call-seq: 
#       which_rdb( String )     -> String 
# 
# Blah blah blah.
# 
# Example: 
#       development: 
#         database: <%= require 'which_rdb'; which_rdb(); %> 
# 
# More blah blah blah.
#
def which_rdb( env=Rails.env() )
        nil
end

The <%= is displayed incorrectly (as '<%Q').

@eclectic923
Copy link
Author

Issue is being reported for rdoc 3.10

@drbrain
Copy link
Member

drbrain commented Nov 1, 2011

RDoc believes the example in your comment is ruby code due to "require". I will try to fix this.

@vijaydev
Copy link

vijaydev commented Dec 8, 2011

The issue exists in the Rails API too. Examples: Here and here

@drbrain
Copy link
Member

drbrain commented Dec 8, 2011

In @c50f187 I've blacklisted the ERB sequences…

Just a stopgap until a better way is found.

@drbrain drbrain closed this as completed Dec 8, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants