Class: RailsBootstrapHelpers::Renderers::ContentTagRenderer::Context
- Inherits:
-
Object
- Object
- RailsBootstrapHelpers::Renderers::ContentTagRenderer::Context
- Defined in:
- lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb
Instance Method Summary collapse
- #append(string) ⇒ Object
- #bs_content_tag(name, options = {}, &block) ⇒ Object
-
#initialize(renderer) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(renderer) ⇒ Context
Returns a new instance of Context.
54 55 56 |
# File 'lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb', line 54 def initialize (renderer) @renderer = renderer end |
Instance Method Details
#append(string) ⇒ Object
62 63 64 |
# File 'lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb', line 62 def append (string) @renderer.send :append, string end |
#bs_content_tag(name, options = {}, &block) ⇒ Object
58 59 60 |
# File 'lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb', line 58 def bs_content_tag (name, = {}, &block) @renderer.send :content_tag_impl, name, , &block end |