Module: Arturo::SpecialHandling::ClassMethods
- Defined in:
- lib/arturo/special_handling.rb
Instance Method Summary collapse
- #blacklist(feature_symbol, &block) ⇒ Object
- #blacklists ⇒ Object
- #whitelist(feature_symbol, &block) ⇒ Object
- #whitelists ⇒ Object
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 |
#blacklists ⇒ Object
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 |
#whitelists ⇒ Object
28 29 30 |
# File 'lib/arturo/special_handling.rb', line 28 def whitelists @whitelists ||= {} end |