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:



574
575
576
577
578
579
580
# File 'lib/action_view/helpers/prototype_helper.rb', line 574

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