Module: Pugin::Feature::Bandiera
- Defined in:
- lib/pugin/feature/bandiera.rb
Class Method Summary collapse
- .dissolution? ⇒ Boolean
- .register_to_vote? ⇒ Boolean
-
.reset ⇒ Object
Reset cached features.
Class Method Details
.dissolution? ⇒ Boolean
5 6 7 8 9 |
# File 'lib/pugin/feature/bandiera.rb', line 5 def dissolution? get_features @features.fetch('show-dissolution', false) end |
.register_to_vote? ⇒ Boolean
10 11 12 13 14 |
# File 'lib/pugin/feature/bandiera.rb', line 10 def register_to_vote? get_features @features.fetch('show-register', false) end |
.reset ⇒ Object
Reset cached features
17 18 19 |
# File 'lib/pugin/feature/bandiera.rb', line 17 def reset @features = nil end |