Class: DeRjs::JqueryGenerator
- Inherits:
-
Object
- Object
- DeRjs::JqueryGenerator
- Defined in:
- lib/de_rjs/jquery_generator.rb
Overview
:nodoc:
Defined Under Namespace
Modules: GeneratorMethods Classes: OutputBuffer
Instance Method Summary collapse
-
#initialize(context, &block) ⇒ JqueryGenerator
constructor
:nodoc:.
Constructor Details
#initialize(context, &block) ⇒ JqueryGenerator
:nodoc:
18 19 20 21 22 23 24 25 |
# File 'lib/de_rjs/jquery_generator.rb', line 18 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 self.instance_exec(&block) end |