class RuboCop::MagicComment
def self.parse(comment)
-
(RuboCop::MagicComment)
-
Parameters:
-
comment
(String
) --
def self.parse(comment) case comment when EmacsComment::FORMAT then EmacsComment.new(comment) when VimComment::FORMAT then VimComment.new(comment) else SimpleComment.new(comment) end end