private Method

JavaScriptCollectionProxy.add_return_statement!

There's no documentation for this item.

Source Code

# File action_view/helpers/prototype_helper.rb, line 1249
def add_return_statement!
  unless function_chain.last =~ /return/
    function_chain.push("return #{function_chain.pop.chomp(';')};")
  end
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.