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.
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 |