Sha256: a8540d1b0249d3ea76a4b5efa65885893f60fa928261a0eda9cc3741220aae09

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

require 'ostruct'

module PrawnRails
extend self

  @config = OpenStruct.new(:page_layout => :portrait,
                           :page_size => "A4",
                           :skip_page_creation => false)

  def config
    begin
      block_given? ? yield(@config) : @config
    rescue => e
      puts e
      puts e.backtrace
    end

  end

end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prawn-rails-0.1.1 lib/prawn-rails/config.rb