Class: ActionView::Helpers::PrototypeHelper::JavaScriptGenerator
- Inherits:
-
Object
- Object
- ActionView::Helpers::PrototypeHelper::JavaScriptGenerator
- Defined in:
- lib/action_view/helpers/prototype_helper.rb,
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
-
#initialize(context, &block) ⇒ JavaScriptGenerator
constructor
:nodoc:.
Constructor Details
#initialize(context, &block) ⇒ JavaScriptGenerator
:nodoc:
147 148 149 150 151 152 153 |
# File 'lib/action_view/helpers/prototype_helper.rb', line 147 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 |