Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/mac_address_eui48/oui_resolver.rb
Instance Method Summary collapse
Instance Method Details
#safe_invert ⇒ Object
5 6 7 |
# File 'lib/mac_address_eui48/oui_resolver.rb', line 5 def safe_invert self.each_with_object( {} ) { |(key, value), out| ( out[value] ||= [] ) << key } end |