Class: Faalis::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/faalis/configuration.rb

Class Attribute Summary (collapse)

Class Method Summary (collapse)

Class Attribute Details

+ (Object) enabled_features

Returns the value of attribute enabled_features



5
6
7
# File 'lib/faalis/configuration.rb', line 5

def enabled_features
  @enabled_features
end

+ (Object) features

Returns the value of attribute features



5
6
7
# File 'lib/faalis/configuration.rb', line 5

def features
  @features
end

Class Method Details

+ (Object) disable



20
21
22
# File 'lib/faalis/configuration.rb', line 20

def disable
  fail 'TODO: create a disable method'
end

+ (Object) enable(feature)



15
16
17
18
# File 'lib/faalis/configuration.rb', line 15

def enable(feature)
  fail "No such feature: '#{feature}'" unless features.include? feature
  features << featue unless enabled_features.include? feature
end