class Thor::CoreExt::HashWithIndifferentAccess

Protected Instance Methods

convert_key(key) click to toggle source

prefered symbol key vs string key

# File lib/baidu_pcs/cli/thor_ext.rb, line 4
def convert_key(key)
  key.is_a?(Symbol) ? key : key.to_sym
end