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

Version Path
csl-2.0.0 lib/csl/style/group.rb
csl-1.6.0 lib/csl/style/group.rb
csl-1.5.2 lib/csl/style/group.rb
csl-1.5.1 lib/csl/style/group.rb
csl-1.5.0 lib/csl/style/group.rb
csl-1.4.5 lib/csl/style/group.rb
csl-1.4.4 lib/csl/style/group.rb
csl-1.4.3 lib/csl/style/group.rb
csl-1.4.2 lib/csl/style/group.rb
csl-1.4.1 lib/csl/style/group.rb
csl-1.4.0 lib/csl/style/group.rb
csl-1.3.2 lib/csl/style/group.rb
csl-1.3.1 lib/csl/style/group.rb
csl-1.3.0 lib/csl/style/group.rb
csl-1.2.3 lib/csl/style/group.rb