Module: Opinions::Opinionated::ClassMethods
- Defined in:
- lib/opinions.rb
Instance Method Summary collapse
Instance Method Details
#opinions(*opinions) ⇒ Object
229 230 231 |
# File 'lib/opinions.rb', line 229 def opinions(*opinions) opinions.each { |opinion| register_opinion(opinion.to_sym) } end |
#register_opinion(name) ⇒ Object
232 233 234 235 |
# File 'lib/opinions.rb', line 232 def register_opinion(name) @registered_opinions ||= Array.new @registered_opinions << name end |
#registered_opinions ⇒ Object
236 237 238 |
# File 'lib/opinions.rb', line 236 def registered_opinions @registered_opinions end |