How to create a structure and a name field with a value in ruby?
It is necessary by calling one function or at least .new (...). New (...).

    2 answers 2

    Struct.new(:name).new('value') 

      Ruby uses the standard type Hash as structures (the essence of the associative array):

       {name: "value"}