Module: StarsRenderer
- Defined in:
- lib/star_ratings/star_renderer.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
14
15
16
|
# File 'lib/star_ratings/star_renderer.rb', line 14
def method_missing(*args, &block)
@template.send(*args, &block)
end
|
Instance Method Details
#render_stars(rating) ⇒ Object
3
4
5
6
|
# File 'lib/star_ratings/star_renderer.rb', line 3
def render_stars(rating)
p 'ratinggg ==========> ', rating
do_render_stars(rating, self)
end
|