Module: Tadpoll::Extenders::Voter
- Defined in:
- lib/tadpoll/extenders/voter.rb
Instance Method Summary collapse
Instance Method Details
#is_voter(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tadpoll/extenders/voter.rb', line 9 def is_voter(*args) require 'tadpoll/voter' include Tadpoll::Voter class_eval do def self.voter? true end end end |
#voter? ⇒ Boolean
5 6 7 |
# File 'lib/tadpoll/extenders/voter.rb', line 5 def voter? false end |