Module: CSL::InheritsNameOptions
- Included in:
- Style::Name, Style::Names
- Defined in:
- lib/csl/name_options.rb
Instance Method Summary collapse
Instance Method Details
#inherits(name) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/csl/name_options.rb', line 24 def inherits(name) = "inheritable_#{name}".to_sym define_method("inherited_#{name}") do |node, style| = {} if node.respond_to?() = node.send().merge() end style ||= root if !style.equal?(self) && style.respond_to?() = style.send().merge() end end end |