Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Saving an object array in another array in Ruby

module SimilarCuisine $dg= RGL::DirectedAdjacencyGraph['English','Indian' ,'English','Asian']

def self.getSimilarCuisine(c)

    return $dg.adjacent_vertices(c)

end

end

# This is function which returns a array of vertices

SimilarCuisine.getSimilarCuisine(@input)

I want to save the output of above call into an array

Comments