Module: Arturo::SpecialHandling::ClassMethods
- Defined in:
- lib/arturo/special_handling.rb
Instance Method Summary collapse
- #blacklist(feature_symbol = nil, &block) ⇒ Object
- #blacklists ⇒ Object
- #whitelist(feature_symbol = nil, &block) ⇒ Object
- #whitelists ⇒ Object
Instance Method Details
#blacklist(feature_symbol = nil, &block) ⇒ Object
47 48 49 |
# File 'lib/arturo/special_handling.rb', line 47 def blacklist(feature_symbol = nil, &block) blacklists << two_arg_block(feature_symbol, block) end |
#blacklists ⇒ Object
39 40 41 |
# File 'lib/arturo/special_handling.rb', line 39 def blacklists @blacklists ||= [] end |
#whitelist(feature_symbol = nil, &block) ⇒ Object
43 44 45 |
# File 'lib/arturo/special_handling.rb', line 43 def whitelist(feature_symbol = nil, &block) whitelists << two_arg_block(feature_symbol, block) end |
#whitelists ⇒ Object
35 36 37 |
# File 'lib/arturo/special_handling.rb', line 35 def whitelists @whitelists ||= [] end |