Class: Bookify::Node::Blockquote
- Defined in:
- lib/bookify/node/blockquote.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#clean_html, #font, #html_classes, #initialize, #method_missing, 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
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/bookify/node/blockquote.rb', line 3 def render font :primary bounding_box [bounds.left + 10, cursor], width: bounds.width - 10 do node.css("p").each do |p| text p.inner_html.strip, inline_format: true move_down 10 end end end |