Class: CSL::Nodes::Layout
Overview
All the rendering elements that should appear in the citations and bibliography should be nested inside the cs:layout element. Itself a rendering element, cs:layout accepts both affixes and formatting attributes. When used in the cs:citation element, a delimiter can be set to separate multiple bibliographic items in a single citation.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Node
Attributes included from Support::Tree
Attributes included from Support::Attributes
#attributes, #key_filter, #value_filter
Instance Method Summary collapse
Methods inherited from Node
#copy, #evaluate, format_on, #initialize, #localized_date_parts, #localized_options, #localized_terms, #merge, #parse, #reverse_merge, #to_s
Methods included from Support::Tree
#add_children, #ancestors, #ancestors!, #children, #depth, #descendants, #descendants!, #each, #find_children_by_name, #has_children?, included, #name, #root, #root!, #root?
Methods included from Support::Attributes
#[], #[]=, included, #merge, #reverse_merge
Constructor Details
This class inherits a constructor from CSL::Nodes::Node
Instance Method Details
#process(data, processor) ⇒ Object
255 256 257 258 259 |
# File 'lib/csl/nodes.rb', line 255 def process(data, processor) children.map { |child| child.process(data, processor) }.join rescue Exception => e handle_processing_error(e, data, processor) end |