Method: Primer::Octicon::Cache.get_key
- Defined in:
- app/lib/primer/octicon/cache.rb
permalink .get_key(symbol:, size:, width: nil, height: nil) ⇒ Object
[View source]
12 13 14 15 16 |
# File 'app/lib/primer/octicon/cache.rb', line 12 def get_key(symbol:, size:, width: nil, height: nil) attrs = { symbol: symbol, size: size, width: width, height: height } attrs.compact! attrs.hash end |