Class: Commands::Map
- Inherits:
-
Hash
- Object
- Hash
- Commands::Map
- Defined in:
- lib/commands/map.rb
Instance Method Summary collapse
Instance Method Details
#[](arg) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/commands/map.rb', line 3 def [](arg) super || ( key = keys.detect{ |e| e.respond_to?(:match) && e.match(arg) } super key ) end |