Tried web resources and didnt have any luck and my visual quick start guide.
If I have my 2d/multidimensional array:
array = [[\'x\', \'x\',\' x\',\'x\'
You can use the method Matrix#index:
require 'matrix' Matrix[*array].index("S") #=> [1, 1]