Module: Navigable::GraphQL::Query::InstanceMethods
- Defined in:
- lib/navigable/graphql/query.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, **kwargs, &block) ⇒ Object
18
19
20
21
22
23
24
|
# File 'lib/navigable/graphql/query.rb', line 18
def method_missing(method, *args, **kwargs, &block)
if field_exists?(method)
Navigable::Dispatcher.dispatch(method, params: kwargs)
else
super
end
end
|
Instance Method Details
#respond_to_missing?(m) ⇒ Boolean
26
27
28
|
# File 'lib/navigable/graphql/query.rb', line 26
def respond_to_missing?(m, *)
field_exists?(m) || super
end
|