public Method

JavaScriptVariableProxy.respond_to?(method)

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.

Source Code

# File action_view/helpers/prototype_helper.rb, line 1147
def respond_to?(method)
  true
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.