Module: Fourmi::Prawn::Utils::Extensions::TextAlign
- Defined in:
- lib/fourmi/prawn/utils/extensions/text_align.rb
Instance Method Summary collapse
- #paragraph(string, options = {}) ⇒ Object
- #textc(string, options = {}) ⇒ Object
- #textj(string, options = {}) ⇒ Object
Instance Method Details
#paragraph(string, options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/fourmi/prawn/utils/extensions/text_align.rb', line 4 def paragraph(string, = {}) textj string, move_down 4 end |
#textc(string, options = {}) ⇒ Object
9 10 11 |
# File 'lib/fourmi/prawn/utils/extensions/text_align.rb', line 9 def textc(string, = {}) text string, {align: :center}.merge() end |
#textj(string, options = {}) ⇒ Object
13 14 15 |
# File 'lib/fourmi/prawn/utils/extensions/text_align.rb', line 13 def textj(string, = {}) text string, {align: :justify}.merge() end |