Magic Comments and Actual Comment

I’m trying to be ready with ruby 1.9. That doesn’t work with the
current version of rails, though.

If I write:

-- coding: utf-8 --

Controller for dealing with users

class UserController < ApplicationController

do something

end

Then, when I generated rdoc with a rake task, I get the magic comment
in every documentation part.

To avoid the problem, I can make a blank line inserted.

-- coding: utf-8 --

Controller for dealing with users

class UserController < ApplicationController

do something

end

What would you do with this? Nothing is harmful if you start to add a
magic comment.

-J

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs