Class: ActionView::Helpers::JqueryHelper::JavaScriptGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/action_view/helpers/jquery_helper.rb,
lib/action_view/helpers/jquery_ui_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 Classes: OutputBuffer

Instance Method Summary collapse

Constructor Details

#initialize(context, &block) ⇒ JavaScriptGenerator

:nodoc:



150
151
152
153
154
155
156
# File 'lib/action_view/helpers/jquery_helper.rb', line 150

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