Method: IsoDoc::Function::XrefGen#anchor_struct
- Defined in:
- lib/isodoc/function/xref_gen.rb
#anchor_struct(lbl, container, elem, type) ⇒ Object
161 162 163 164 165 166 167 168 169 |
# File 'lib/isodoc/function/xref_gen.rb', line 161 def anchor_struct(lbl, container, elem, type) ret = {} ret[:label] = anchor_struct_label(lbl, elem) ret[:xref] = anchor_struct_xref(lbl, elem) ret[:xref].gsub!(/ $/, "") ret[:container] = get_clause_id(container) unless container.nil? ret[:type] = type ret end |