Module: Dradis::Plugins::Configurable::ClassMethods

Defined in:
lib/dradis/plugins/configurable.rb

Instance Method Summary collapse

Instance Method Details

#addon_encrypted_settings(namespace = nil) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



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

Yields:

  • (_self)

Yield Parameters:



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

#instanceObject



22
23
24
# File 'lib/dradis/plugins/configurable.rb', line 22

def instance
  @instance ||= new
end

#settings_namespaceObject



8
9
10
# File 'lib/dradis/plugins/configurable.rb', line 8

def settings_namespace
  @settings_namespace ||= plugin_name
end