Card = Struct.new(:face, :suit, :value)deck = []deck << Card.new("Queen", "Spade", 12)puts deck[0].faceputs deck[0].suitputs deck[0].value
Standard input is empty
Queen Spade 12
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!