There's no documentation for this item.
# File action_view/helpers/prototype_helper.rb, line 971 def block_to_function(block) generator = self.class.new(@context, &block) literal("function() { #{generator.to_s} }") end
<code/>
<pre/>
<code/>and<pre/>for code samples.