Class: Bookify::Node::H3
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#break_if_close_to_bottom, #clean_html, #decode_html, #font, #html_classes, #initialize, #method_missing, #page_top, render
Constructor Details
This class inherits a constructor from Bookify::Node::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bookify::Node::Base
Instance Method Details
#render ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/bookify/node/h3.rb', line 5 def render move_down 10 unless pdf.y == page_top break_if_close_to_bottom font :h3 do text decode_html(node.inner_html.strip) end move_down 5 end |