class SyntaxTree::LanguageServer::Request::Tuple

Represents an array pattern.

Attributes

values[R]

Public Class Methods

new(values) click to toggle source
# File lib/syntax_tree/language_server.rb, line 194
def initialize(values)
  @values = values
end

Public Instance Methods

===(other) click to toggle source
# File lib/syntax_tree/language_server.rb, line 198
def ===(other)
  values.each_with_index.all? { |value, index| value === other[index] }
end