Class: Booky::Layout::Base::Subtitle
- Defined in:
- lib/booky/layout/base/subtitle.rb
Constant Summary collapse
- OPTIONS =
{ :align => :center, :size => 14 }
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_prawn ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/booky/layout/base/subtitle.rb', line 9 def to_prawn fill_color Booky::Layout::Base::COLORS[1] text [:text], OPTIONS fill_color Booky::Layout::Base::COLORS[0] move_down 10.cm end |