Sha256: 558b99d2ca5f77b9553e860e361cea43789436df4240c753e63b065fd7bf9acf

Contents?: true

Size: 342 Bytes

Versions: 1

Compression:

Stored size: 342 Bytes

Contents

require 'prawn'
require 'cheque/version'

class Cheque
  autoload :Copy, 'cheque/copy'

  def initialize(data, document)
    @data = data
    @document = document
  end

  def render
    formater.data
  end

  private

  attr_reader :data, :document

  def formater
    @formater ||= Cheque.const_get(document.capitalize).new(data)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cheque-0.1.0 lib/cheque.rb