method
respond_to?
v2.1.0 -
Show latest stable
- Class:
ActionView::Helpers::JavaScriptVariableProxy
respond_to?(method)public
The JSON Encoder calls this to check for the to_json method Since it’s a blank slate object, I suppose it responds to anything.