Class: Booky::Layout::Base::Footnote

Inherits:
Element
  • Object
show all
Includes:
Helpers
Defined in:
lib/booky/layout/base/footnote.rb

Instance Attribute Summary

Attributes inherited from Element

#ast, #document, #index, #options

Instance Method Summary collapse

Methods included from Helpers

#add_to_toc, #is_first_rendering?, #update_levels

Methods inherited from Element

#initialize, #method_missing, #next_option, #previous_option

Constructor Details

This class inherits a constructor from Booky::Layout::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Booky::Layout::Element

Instance Method Details

#to_prawnObject



5
6
7
# File 'lib/booky/layout/base/footnote.rb', line 5

def to_prawn
  Booky::Layout.config.tof << { :id => @options[:id], :text => @options[:text], :page => page_number}
end