Parent

Methods

SSHKit::CommandMap::CommandHash

Public Class Methods

new(defaults = {}) click to toggle source
# File lib/sshkit/command_map.rb, line 4
def initialize(defaults = {})
  @storage = {}
  @defaults = defaults
end

Public Instance Methods

[](key) click to toggle source
# File lib/sshkit/command_map.rb, line 9
def [](key)
  @storage[normalize_key(key)] ||= @defaults[key]
end
[]=(key, value) click to toggle source
# File lib/sshkit/command_map.rb, line 13
def []=(key, value)
  @storage[normalize_key(key)] = value
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.