Class: RailsBootstrapHelpers::Renderers::Renderer

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

Direct Known Subclasses

AbstractButtonRenderer

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#templateObject (readonly)

Returns the value of attribute template.



4
5
6
# File 'lib/rails-bootstrap-helpers/renderers/renderer.rb', line 4

def template
  @template
end