Module: Opinions::Pollable::ClassMethods
- Defined in:
- lib/opinions.rb
Instance Method Summary collapse
Instance Method Details
#opinions(*opinions) ⇒ Object
181 182 183 |
# File 'lib/opinions.rb', line 181 def opinions(*opinions) opinions.each { |opinion| register_opinion(opinion.to_sym) } end |
#register_opinion(name) ⇒ Object
184 185 186 187 |
# File 'lib/opinions.rb', line 184 def register_opinion(name) @registered_opinions ||= Array.new @registered_opinions << name end |
#registered_opinions ⇒ Object
188 189 190 |
# File 'lib/opinions.rb', line 188 def registered_opinions @registered_opinions end |