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

Inherits:
Object
  • Object
show all
Defined in:
actionpack/lib/action_view/helpers/prototype_helper.rb,
actionpack/lib/action_view/helpers/scriptaculous_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

- (JavaScriptGenerator) initialize(context, &block)

:nodoc:



148
149
150
151
152
153
154
# File 'actionpack/lib/action_view/helpers/prototype_helper.rb', line 148

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