Class: SSHKit::CommandMap::PrefixProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/sshkit/command_map.rb

Instance Method Summary collapse

Constructor Details

#initializePrefixProvider

Returns a new instance of PrefixProvider.



25
26
27
# File 'lib/sshkit/command_map.rb', line 25

def initialize
  @storage = CommandHash.new
end

Instance Method Details

#[](command) ⇒ Object



29
30
31
# File 'lib/sshkit/command_map.rb', line 29

def [](command)
  @storage[command] ||= []
end