Class: SSHKit::CommandMap::PrefixProvider
- Inherits:
-
Object
- Object
- SSHKit::CommandMap::PrefixProvider
- Defined in:
- lib/sshkit/command_map.rb
Instance Method Summary collapse
- #[](command) ⇒ Object
-
#initialize ⇒ PrefixProvider
constructor
A new instance of PrefixProvider.
Constructor Details
#initialize ⇒ PrefixProvider
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 |