Class: Deplate::Regions::Footnote

Inherits:
Deplate::Region::SecondOrder show all
Defined in:
lib/deplate/regions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Deplate::Region::SecondOrder

#process, #push_styles

Methods inherited from Deplate::Region

check_file, clean_strings, #deprecated_regnote, deprecated_regnote, #finish_accum, #format_compound, regions, register_as, set_line_cont, #setup

Methods inherited from Element

#join_lines, #join_lines_re_zh_cn

Instance Attribute Details

#fn_consumedObject

Returns the value of attribute fn_consumed.



658
659
660
# File 'lib/deplate/regions.rb', line 658

def fn_consumed
  @fn_consumed
end

#fn_labelObject

Returns the value of attribute fn_label.



658
659
660
# File 'lib/deplate/regions.rb', line 658

def fn_label
  @fn_label
end

#fn_nObject

Returns the value of attribute fn_n.



658
659
660
# File 'lib/deplate/regions.rb', line 658

def fn_n
  @fn_n
end

Instance Method Details

#finishObject



660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
# File 'lib/deplate/regions.rb', line 660

def finish
    rv = super
    @prototype = Deplate::Element
    id = deprecated_regnote('id')
    if id
        @deplate.footnotes[id] = rv
        # @deplate.register_metadata(src, 
        #                            "type"  => "footnote", 
        #                            "name"  => id,
        #                            "value" => accum
        #                           )
    else
        log('Missing arguments', :error)
    end
    return nil
end