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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(context, &block) ⇒ JavaScriptGenerator
constructor
:nodoc:.
Constructor Details
#initialize(context, &block) ⇒ JavaScriptGenerator
:nodoc:
154 155 156 157 158 159 160 161 |
# File 'lib/action_view/helpers/prototype_helper.rb', line 154 def initialize(context, &block) #:nodoc: @context, @lines = context, [] def @lines.encoding() last.to_s.encoding end include_helpers_from_context @context.with_output_buffer(@lines) do @context.instance_exec(self, &block) end end |
Class Method Details
.encoding ⇒ Object
156 |
# File 'lib/action_view/helpers/prototype_helper.rb', line 156 def @lines.encoding() last.to_s.encoding end |