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:


374
375
376
377
378
# File 'lib/action_view/helpers/prototype_helper.rb', line 374

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