NOTE: This could be a problem with the playground, investigating
->
Error: Only one primitive allowed at the root.
Same problem even if the key appears in a map:
my_object = (
string = "abc";
number = 1;
array = [1; 2; 3];
map = (a=1;b=2;c=3)
)
This also fails:
my_object = ( string = "abc" )
But with a different error:
Error: Unexpected token: 'type: rparen, from: 29, to: 30, value: ")"'
Latest version of the Rubygem at https://www.modl.uk/playground