summaryrefslogtreecommitdiff
path: root/lib/net/ssh/multi/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ssh/multi/server.rb')
-rw-r--r--lib/net/ssh/multi/server.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/net/ssh/multi/server.rb b/lib/net/ssh/multi/server.rb
index f53adb8..41fd97c 100644
--- a/lib/net/ssh/multi/server.rb
+++ b/lib/net/ssh/multi/server.rb
@@ -61,7 +61,13 @@ module Net; module SSH; module Multi
# properties are described via the +:properties+ key in the options hash
# when defining the Server.
def [](key)
- (options[:properties] ||= {})[key]
+ (options[:properties] || {})[key]
+ end
+
+ # Sets the given key/value pair in the +:properties+ key in the options
+ # hash. If the options hash has no :properties key, it will be created.
+ def []=(key, value)
+ (options[:properties] ||= {})[key] = value
end
# Returns the port number to use for this connection.