Class: Booky::Layout::Base::P

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

Constant Summary collapse

OPTIONS =
{
  :align          => :justify,
  :inline_format  => true
}

Instance Attribute Summary

Attributes inherited from Element

#ast, #document, #index, #options

Instance Method Summary collapse

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



9
10
11
12
# File 'lib/booky/layout/base/p.rb', line 9

def to_prawn
  text @options[:text], OPTIONS
  move_down 0.5.cm
end