Class: Putter::Configuration
- Inherits:
-
Object
- Object
- Putter::Configuration
- Defined in:
- lib/putter/configuration.rb
Instance Attribute Summary collapse
-
#allow_production ⇒ Object
Returns the value of attribute allow_production.
- #ignore_methods_from ⇒ Object
-
#methods_blacklist ⇒ Object
Returns the value of attribute methods_blacklist.
-
#methods_whitelist ⇒ Object
Returns the value of attribute methods_whitelist.
-
#print_strategy ⇒ Object
Returns the value of attribute print_strategy.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 |
# File 'lib/putter/configuration.rb', line 6 def initialize @ignore_methods_from = [Object] @ignore_methods_from << ActiveRecord::Base if defined?(ActiveRecord::Base) @print_strategy = PrintStrategy::Default @allow_production = false @methods_whitelist = [] @methods_blacklist = [] end |
Instance Attribute Details
#allow_production ⇒ Object
Returns the value of attribute allow_production.
3 4 5 |
# File 'lib/putter/configuration.rb', line 3 def allow_production @allow_production end |
#ignore_methods_from ⇒ Object
15 16 17 |
# File 'lib/putter/configuration.rb', line 15 def ignore_methods_from convert_to_array(@ignore_methods_from) end |
#methods_blacklist ⇒ Object
Returns the value of attribute methods_blacklist.
3 4 5 |
# File 'lib/putter/configuration.rb', line 3 def methods_blacklist @methods_blacklist end |
#methods_whitelist ⇒ Object
Returns the value of attribute methods_whitelist.
3 4 5 |
# File 'lib/putter/configuration.rb', line 3 def methods_whitelist @methods_whitelist end |
#print_strategy ⇒ Object
Returns the value of attribute print_strategy.
3 4 5 |
# File 'lib/putter/configuration.rb', line 3 def print_strategy @print_strategy end |