Module: Rateable::Rater::InstanceMethods
- Defined in:
- lib/rateable/rater.rb
Instance Method Summary collapse
Instance Method Details
#is_rater? ⇒ Boolean
19 20 21 |
# File 'lib/rateable/rater.rb', line 19 def is_rater? true end |
#rate(obj, stars) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/rateable/rater.rb', line 23 def rate(obj,stars) if begin obj.is_rateable? rescue false end obj.rate(self,stars) else false end end |