You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Seahorse::Client::PluginListAdds and returns the plugin
.
Enumerates the plugins.
A new instance of PluginList.
Removes and returns the plugin
.
Replaces the existing list of plugins.
Returns a new instance of PluginList.
12 13 14 15 16 17 18 19 20
# File 'aws-sdk-core/lib/seahorse/client/plugin_list.rb', line 12 def initialize(plugins = [], options = {}) @mutex = options[:mutex] || Mutex.new @plugins = Set.new if plugins.is_a?(PluginList) plugins.send(:each_plugin) { |plugin| _add(plugin) } else plugins.each { |plugin| _add(plugin) } end endInstance Method Details #add(plugin) ⇒ void
This method returns an undefined value.
Adds and returns the plugin
.
25 26 27 28 29 30
# File 'aws-sdk-core/lib/seahorse/client/plugin_list.rb', line 25 def add(plugin) @mutex.synchronize do _add(plugin) end nil end#each(&block) ⇒ Enumerator
57 58 59 60 61
# File 'aws-sdk-core/lib/seahorse/client/plugin_list.rb', line 57 def each(&block) each_plugin do |plugin_wrapper| yield(plugin_wrapper.plugin) end end#remove(plugin) ⇒ void
This method returns an undefined value.
Removes and returns the plugin
.
35 36 37 38 39 40
# File 'aws-sdk-core/lib/seahorse/client/plugin_list.rb', line 35 def remove(plugin) @mutex.synchronize do @plugins.delete(PluginWrapper.new(plugin)) end nil end#set(plugins) ⇒ void
This method returns an undefined value.
Replaces the existing list of plugins.
45 46 47 48 49 50 51 52 53
# File 'aws-sdk-core/lib/seahorse/client/plugin_list.rb', line 45 def set(plugins) @mutex.synchronize do @plugins.clear plugins.each do |plugin| _add(plugin) end end nil end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4