Sha256: d61e200ba0ff94fa162e2a62a65b7930e62cb83b33b3ff720caf637381e16417

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

begin
  require 'date'
rescue LoadError
  require 'rubygems' unless ENV['NO_RUBYGEMS']
  gem 'date'
  require 'date'
end

%w(core_ext currency config).each {|req| require File.join(File.dirname(__FILE__),"brcobranca",req) }

%w(base banco_brasil banco_itau banco_hsbc banco_real banco_bradesco banco_unibanco banco_banespa banco_caixa).each do |req|    
  require File.join(File.dirname(__FILE__),"brcobranca","boleto",req) 
end

%w(util rghost).each {|req| require File.join(File.dirname(__FILE__),"brcobranca","boleto","template",req) }

%w(base retorno_cbr643).each {|req| require File.join(File.dirname(__FILE__),"brcobranca","retorno",req) }

case Brcobranca::Config::OPCOES[:gerador]
when 'rghost'

  module Brcobranca::Boleto
    Base.class_eval do
      include Brcobranca::Boleto::Template::Rghost
      extend Brcobranca::Boleto::Template::Rghost
      include Brcobranca::Boleto::Template::Util
    end
  end

else
  "Configure o gerador na opção 'Brcobranca::Config::OPCOES[:gerador]' corretamente!!!"
end

module Brcobranca
  VERSION = '2.0.10'
  
  class NaoImplementado < NotImplementedError
  end
  
  class BoletoInvalido < StandardError
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tulios-brcobranca-rails2-2.0.10 lib/brcobranca.rb