method

respond_to?

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActionView::Helpers::JavaScriptVariableProxy
respond_to?(*) 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.

Show source
Register or log in to add new notes.