Class: InterMine::Lists::List::SymbolAcceptingHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/intermine/lists.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



362
363
364
365
366
367
368
369
# File 'lib/intermine/lists.rb', line 362

def [](key)
    return case key
    when Symbol
        return super(key.to_s.gsub(/[_]/, '-'))
    else
        return super(key)
    end
end