Class: Booky::Layout::Base::Copyright

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

Constant Summary collapse

OPTIONS =
{
  :align => :center,
  :size => 10
}

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
13
# File 'lib/booky/layout/base/copyright.rb', line 9

def to_prawn
  fill_color Booky::Layout::Base::COLORS[1]
  text @options[:text], OPTIONS
  fill_color Booky::Layout::Base::COLORS[0]
end