class YapShellAddonTabCompletion::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/completion_result.rb, line 5 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/completion_result.rb, line 15 def <=>(other) @text <=> other.text end
==(other)
click to toggle source
# File lib/yap-shell-addon-tab-completion/completion_result.rb, line 11 def ==(other) other.is_a?(self.class) && @text == other.text && @type == other.type end
to_s()
click to toggle source
# File lib/yap-shell-addon-tab-completion/completion_result.rb, line 19 def to_s @text.to_s end