class Prawn::Document
Public Instance Methods
text_with_shadow(*text_args)
click to toggle source
# File lib/qhandout.rb, line 36 def text_with_shadow(*text_args) with_shadow do text *text_args end end
texts(lines, *parameters)
click to toggle source
# File lib/qhandout.rb, line 11 def texts(lines, *parameters) lines.each do |line| text line, *parameters end end
with_shadow(parameters = {}) { || ... }
click to toggle source
# File lib/qhandout.rb, line 17 def with_shadow(parameters = {}) shadow_color = parameters[:color] || GRAY depth = parameters[:depth] || 0.5.mm original_cursor = cursor original_fill_color = fill_color fill_color shadow_color move_down depth indent depth do yield end move_cursor_to original_cursor fill_color original_fill_color yield end