Class: RailsBootstrapHelpers::Renderers::Renderer
- Inherits:
-
Object
- Object
- RailsBootstrapHelpers::Renderers::Renderer
- Defined in:
- lib/rails-bootstrap-helpers/renderers/renderer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template) ⇒ Renderer
constructor
A new instance of Renderer.
- #method_missing(*args, &block) ⇒ Object
Constructor Details
#initialize(template) ⇒ Renderer
Returns a new instance of Renderer.
6 7 8 |
# File 'lib/rails-bootstrap-helpers/renderers/renderer.rb', line 6 def initialize (template) @template = template end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
10 11 12 |
# File 'lib/rails-bootstrap-helpers/renderers/renderer.rb', line 10 def method_missing (*args, &block) @template.send(*args, &block) end |
Instance Attribute Details
#template ⇒ Object (readonly)
Returns the value of attribute template.
4 5 6 |
# File 'lib/rails-bootstrap-helpers/renderers/renderer.rb', line 4 def template @template end |