Module: Dradis::Plugins::Configurable::ClassMethods
- Defined in:
- lib/dradis/plugins/configurable.rb
Instance Method Summary collapse
- #addon_encrypted_settings(namespace = nil) {|_self| ... } ⇒ Object
- #addon_settings(namespace = nil) {|_self| ... } ⇒ Object
- #instance ⇒ Object
- #settings_namespace ⇒ Object
Instance Method Details
#addon_encrypted_settings(namespace = nil) {|_self| ... } ⇒ Object
12 13 14 15 |
# File 'lib/dradis/plugins/configurable.rb', line 12 def addon_encrypted_settings(namespace = nil, &block) @settings_namespace = namespace yield self if block_given? end |
#addon_settings(namespace = nil) {|_self| ... } ⇒ Object
17 18 19 20 |
# File 'lib/dradis/plugins/configurable.rb', line 17 def addon_settings(namespace = nil, &block) @settings_namespace = namespace yield self if block_given? end |
#instance ⇒ Object
22 23 24 |
# File 'lib/dradis/plugins/configurable.rb', line 22 def instance @instance ||= new end |
#settings_namespace ⇒ Object
8 9 10 |
# File 'lib/dradis/plugins/configurable.rb', line 8 def settings_namespace @settings_namespace ||= plugin_name end |