Sha256: 7b846086f7ee789997e206ba0068312afd02f1593659a0673a96705a36f2773e
Contents?: true
Size: 440 Bytes
Versions: 13
Compression:
Stored size: 440 Bytes
Contents
module Veewee class Template attr_accessor :env attr_reader :name,:path def initialize(name,path,env) @name=name @path=path @env=env return self end def exists? filename=Dir.glob("#{path}/definition.rb") if filename.length!=0 env.logger.debug("[Template] template '#{name}' is valid") return true else return false end end end end
Version data entries
13 entries across 13 versions & 1 rubygems