Class: RailsBootstrapHelpers::Renderers::ContentTagRenderer

Inherits:
Renderer
  • Object
show all
Defined in:
lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb

Defined Under Namespace

Classes: Context

Instance Attribute Summary

Attributes inherited from Renderer

#template

Instance Method Summary collapse

Methods inherited from Renderer

#method_missing

Constructor Details

#initialize(template, name, options, &block) ⇒ ContentTagRenderer

Returns a new instance of ContentTagRenderer.



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb', line 3

def initialize (template, name, options, &block)
  super template

  @name = name
  @options = options
  @block = block
  
  @indentation_level = 0
  @default_indentation = 2
  @buffer = ""
  @context = Context.new(self)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RailsBootstrapHelpers::Renderers::Renderer

Instance Method Details

#renderObject



16
17
18
# File 'lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb', line 16

def render
  (name, options, &block)
end