Class: AgnosticBackend::Queryable::Visitor
- Inherits:
-
Object
- Object
- AgnosticBackend::Queryable::Visitor
- Defined in:
- lib/agnostic_backend/queryable/visitor.rb
Direct Known Subclasses
Cloudsearch::SimpleVisitor, Cloudsearch::Visitor, Elasticsearch::Visitor, Validator
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 |