Class: AgnosticBackend::Queryable::Visitor

Inherits:
Object
  • Object
show all
Defined in:
lib/agnostic_backend/queryable/visitor.rb

Instance Method Summary collapse

Instance Method Details

#visit(subject) ⇒ Object



7
8
9
10
# File 'lib/agnostic_backend/queryable/visitor.rb', line 7

def visit(subject)
  method_name = class_to_method_name(subject.class)
  send(method_name, subject)
end