Method: Collins::Asset::Update.get_param
- Defined in:
- lib/collins/asset_update.rb
.get_param(key) ⇒ Object
get_param_value
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/collins/asset_update.rb', line 38 def get_param key to_a.each do |k| if k.is_a?(Regexp) && !k.match(key).nil? then # Assume it's a power setting until we have >1 regexp return key.upcase elsif key.to_s.downcase == k.to_s.downcase then return k end end return key end |