123456789_123456789_123456789_123456789_123456789_

Class: IRB::MethodDocument

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: IRB::DocumentTarget
Defined in: lib/irb/completion.rb

Overview

Represents a method/class documentation target. May hold multiple names when the receiver is ambiguous (e.g. {}.any? could be Hash#any? or Proc#any?). The dialog popup uses only the first name; the full-screen display renders all.

Class Method Summary

Instance Attribute Summary

DocumentTarget - Inherited

Constructor Details

.new(*names) ⇒ MethodDocument

[ GitHub ]

  
# File 'lib/irb/completion.rb', line 28

def initialize(*names)
  super(names.first)
  @names = names
end

Instance Attribute Details

#names (readonly)

[ GitHub ]

  
# File 'lib/irb/completion.rb', line 26

attr_reader :names