Class: RailsBootstrapHelpers::Renderers::ContentTagRenderer
- Defined in:
- lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb
Defined Under Namespace
Classes: Context
Instance Attribute Summary
Attributes inherited from Renderer
Instance Method Summary collapse
-
#initialize(template, name, options, &block) ⇒ ContentTagRenderer
constructor
A new instance of ContentTagRenderer.
- #render ⇒ Object
Methods inherited from Renderer
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, , &block) super template @name = name = @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
#render ⇒ Object
16 17 18 |
# File 'lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb', line 16 def render content_tag_impl(name, , &block) end |