Skip to content

Macros aren't processed in an empty class #1613

@jimtng

Description

@jimtng

It seems that macros (specifically @!method) inside an empty class are ignored.

class X
  # @!method i_get_ignored
  #   description
end

If I added a dummy method inside the class, the macros get processed

class X
class X
  # @!method i_get_processed
  #   description
  
  # @!visibility private
  def dummy
    nil
  end
end

If I moved the macros above the class, they'll get processed

# This is class X
#
# @!method i_get_ignored
#   description
class X
end

Expected behavior

Macros should be processed even when there are no other real methods in the class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions