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:


583
584
585
586
587
588
589
# File 'lib/action_view/helpers/prototype_helper.rb', line 583

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