Module: CSL::InheritableNameOptions

Included in:
Style, Style::Bibliography, Style::Citation
Defined in:
lib/csl/name_options.rb

Instance Method Summary collapse

Instance Method Details

#inheritable_name_optionsObject



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/csl/name_options.rb', line 3

def inheritable_name_options
  options = attributes_for(*Schema.attr(:name))

  if attribute?(:'name-delimiter')
    options[:delimiter] = attributes[:'name-delimiter']
  end

  if attribute?(:'name-form')
    options[:form] = attributes[:'name-form']
  end

  options
end

#inheritable_names_optionsObject



17
18
19
20
# File 'lib/csl/name_options.rb', line 17

def inheritable_names_options
  return {} unless attribute? :'names-delimiter'
  { :delimiter => attributes[:'names-delimiter'] }
end