Method: CSL::Node#formatting_options
- Defined in:
- lib/csl/node.rb
#formatting_options ⇒ Hash
The node’s formatting options. If the node’s parent responds to ‘inheritable_formatting_options`, these will be included in the result. This makes it easy for nodes to push formatting options to their child nodes.
442 443 444 445 446 447 448 449 450 |
# File 'lib/csl/node.rb', line 442 def = attributes_for Schema.attr(:formatting) if !root? && parent.respond_to?(:inheritable_formatting_options) parent..merge() else end end |