Class: GmailSearchSyntax::AST::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/gmail_search_syntax/ast.rb

Direct Known Subclasses

And, Around, Group, Not, Operator, Or, StringToken, Substring

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



4
5
6
# File 'lib/gmail_search_syntax/ast.rb', line 4

def ==(other)
  self.class == other.class && attributes == other.attributes
end

#attributesObject



8
9
10
# File 'lib/gmail_search_syntax/ast.rb', line 8

def attributes
  instance_variables.map { |var| instance_variable_get(var) }
end