class YapShellAddonTabCompletion::Addon::CompletionResult

Attributes

descriptive_text[RW]
text[RW]
type[RW]

Public Class Methods

new(text:, type:, descriptive_text: nil) click to toggle source
# File lib/yap-shell-addon-tab-completion.rb, line 15
def initialize(text:, type:, descriptive_text: nil)
  @descriptive_text = descriptive_text || text
  @text = text
  @type = type
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/yap-shell-addon-tab-completion.rb, line 25
def <=>(other)
  @text <=> other.text
end
==(other) click to toggle source
# File lib/yap-shell-addon-tab-completion.rb, line 21
def ==(other)
  other.is_a?(self.class) && @text == other.text && @type == other.type
end
inspect()
Alias for: to_s
to_s() click to toggle source
# File lib/yap-shell-addon-tab-completion.rb, line 29
def to_s
  @text.to_s
end
Also aliased as: to_str, inspect
to_str()
Alias for: to_s