Module: Pugin::Feature::Bandiera

Defined in:
lib/pugin/feature/bandiera.rb

Class Method Summary collapse

Class Method Details

.dissolution?Boolean

Returns:

  • (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

Returns:

  • (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

.resetObject

Reset cached features



17
18
19
# File 'lib/pugin/feature/bandiera.rb', line 17

def reset
  @features = nil
end