Skip to content

ri aliased-method does not show useful information #588

@znz

Description

@znz

For example, https://docs.ruby-lang.org/en/2.5.0/Array.html#method-i-to_s says Alias for: inspect, but ri 'Array#to_s' does not show such information.

%  ri 'Array#inspect' | cat
= Array#inspect

(from ruby core)
------------------------------------------------------------------------------
  ary.inspect  -> string
  ary.to_s     -> string

------------------------------------------------------------------------------

Creates a string representation of self.

  [ "a", "b", "c" ].to_s     #=> "[\"a\", \"b\", \"c\"]"


%  ri 'Array#to_s' | cat
= Array#to_s

(from ruby core)
------------------------------------------------------------------------------
  to_s()

------------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions