class Querly::Pattern::Expr::Base

Public Instance Methods

==(other) click to toggle source
# File lib/querly/pattern/expr.rb, line 13
def ==(other)
  other.class == self.class && other.attributes == attributes
end
=~(pair) click to toggle source
# File lib/querly/pattern/expr.rb, line 5
def =~(pair)
  test_node(pair.node)
end
attributes() click to toggle source
# File lib/querly/pattern/expr.rb, line 17
def attributes
  instance_variables.each.with_object({}) do |name, hash|
    hash[name] = instance_variable_get(name)
  end
end
test_node(node) click to toggle source
# File lib/querly/pattern/expr.rb, line 9
def test_node(node)
  false
end