Sorry if this is a stupid question, but I would like to know how one can go about defining a class in an Arbre block. I tried to simply put the comma after the block, but Ruby accuses it of an error (specifically: "unexpected token tCOMMA (Using Ruby 2.3 parser; configure using TargetRubyVersion
parameter, under AllCops
) (error:Lint/Syntax)").
This is how I tried to do it:
div {
h4 "Title", class: "title"
span "Info", class: "info"
}, class: "my_div"
this results in the aformentioned error. But I don't really know any other way to go about this. Any help would be much appreciated!