Method: Chef::Resource::WindowsFeatureDism#to_formatted_array

Defined in:
lib/chef/resource/windows_feature_dism.rb

#to_formatted_array(x) ⇒ Array

Returns lowercase the array.

Returns:

  • (Array)

    lowercase the array



62
63
64
65
# File 'lib/chef/resource/windows_feature_dism.rb', line 62

def to_formatted_array(x)
  x = x.split(/\s*,\s*/) if x.is_a?(String) # split multiple forms of a comma separated list
  x.map(&:downcase)
end