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.



4
5
6
# File 'lib/sshkit/command_map.rb', line 4

def initialize
  @storage = {}
end

Instance Method Details

#[](command) ⇒ Object



8
9
10
11
12
# File 'lib/sshkit/command_map.rb', line 8

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

  @storage[command]
end