Module: Arturo::SpecialHandling::ClassMethods

Defined in:
lib/arturo/special_handling.rb

Instance Method Summary collapse

Instance Method Details

#blacklist(feature_symbol, &block) ⇒ Object



40
41
42
# File 'lib/arturo/special_handling.rb', line 40

def blacklist(feature_symbol, &block)
  blacklists[feature_symbol.to_sym] = block
end

#blacklistsObject



32
33
34
# File 'lib/arturo/special_handling.rb', line 32

def blacklists
  @blacklists ||= {}
end

#whitelist(feature_symbol, &block) ⇒ Object



36
37
38
# File 'lib/arturo/special_handling.rb', line 36

def whitelist(feature_symbol, &block)
  whitelists[feature_symbol.to_sym] = block
end

#whitelistsObject



28
29
30
# File 'lib/arturo/special_handling.rb', line 28

def whitelists
  @whitelists ||= {}
end