Sha256: d9e4cf49317675abf1488ca58dc85da6e310837b45e65e0eaa12a25f617d18f2
Contents?: true
Size: 803 Bytes
Versions: 15
Compression:
Stored size: 803 Bytes
Contents
module CSL class Style # The Group rendering element must contain one or more rendering # element (with the exception of {Layout}). Group nodes may carry the # delimiter attribute to separate their child elements, as well as # affixes and display attributes and text formatting (applied to the # output of the group as a whole). # # Groups implicitly act as a conditionals: a Group and its child # elements are suppressed if a) at least one rendering element in # the Group calls a variable (either directly or via a macro), and # b) all variables that are called are empty. class Group < Node attr_struct(*Schema.attr(:formatting, :delimiter)) def delimiter attributes.fetch(:delimiter, '') end end end end
Version data entries
15 entries across 15 versions & 1 rubygems