Sha256: cfca16b99546bd7ba9b829125916c551920f4af28381145a8f2df3d6779da7ad

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

require 'formatafacil/tarefa'


module Formatafacil
  class Template
  
    attr_accessor 'modelos'
    # Derectory of templates
    attr_accessor 'directory'
    
    def initialize()
      @modelos = {}

      # ler os templates do projeto formatafacil-templates
      $LOAD_PATH.each { |dir|  
        files = Dir["#{dir}/formatafacil/templates/*.latex"]
        files.each { |file| 
          if file
            @modelos[File.basename(file, '.tex')] = file
            @directory = "#{dir}/formatafacil"
          end
        }
      }

    end
    
    def executa
    end
      
    # $LOAD_PATH.each { |dir|  ... look for resources relative to dir ... }
    def list
      modelos.keys
    end
  end
    
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formatafacil-0.1.0 lib/formatafacil/template.rb