Refresh

This website rubydoc.info/gems/actionpack/2.1.1/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator is currently offline. Cloudflare\'s Always Online™ shows a snapshot of this web page from the Internet Archive\'s Wayback Machine. To check for the live version, click Refresh.

Class: ActionView::Helpers::PrototypeHelper::JavaScriptGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/action_view/helpers/prototype_helper.rb

Overview

All the methods were moved to GeneratorMethods so that #include_helpers_from_context has nothing to overwrite.

Defined Under Namespace

Modules: GeneratorMethods

Instance Method Summary collapse

Constructor Details

#initialize(context, &block) ⇒ JavaScriptGenerator

:nodoc:



578
579
580
581
582
# File 'lib/action_view/helpers/prototype_helper.rb', line 578

def initialize(context, &block) #:nodoc:
  @context, @lines = context, []
  include_helpers_from_context
  @context.instance_exec(self, &block)
end