Skip to content

Call-seq not honored in a certain case #792

@BurdetteLamar

Description

@BurdetteLamar

The darkfish output for this method does not show the call-seq.

The alias is involved, because if it is omitted, the call-seq appears in the output.

The original error is seen in the darkfish output for REXML::Document#expaded_name, in rexml/lib/rexml/document.rb. (Actually, it's seen in my PR ruby/rexml#47.)

There is one other alias in that file, which does not cause the error.

This adapted code will show the error in its darkfish output:

class Foo

# :call-seq:
#   expanded_name -> empty_string
#
# Returns an empty string.
#
  def expanded_name
    ''
    #d = doc_type
    #d ? d.name : "UNDEFINED"
  end
  alias :name :expanded_name

end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions