Sha256: a92adbcce73b558fc8a9969b6cb4869f0e4ba725b1bd601f0312691392a0559c

Contents?: true

Size: 251 Bytes

Versions: 13

Compression:

Stored size: 251 Bytes

Contents

module Slippers 
  class FileTemplate  < Template
    def initialize(filename)
      @filename = filename
    end
    attr_reader :filename
    def template()
      return @template if @template
      @template = File.read(@filename)
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
starapor-slippers-0.0.0 lib/engine/file_template.rb
starapor-slippers-0.0.1 lib/engine/file_template.rb
starapor-slippers-0.0.2 lib/engine/file_template.rb
starapor-slippers-0.0.3 lib/engine/file_template.rb
starapor-slippers-0.0.5 lib/engine/file_template.rb
starapor-slippers-0.0.6 lib/engine/file_template.rb
starapor-slippers-0.0.8 lib/engine/file_template.rb
starapor-slippers-0.0.9 lib/engine/file_template.rb
slippers-0.0.14 lib/engine/file_template.rb
slippers-0.0.13 lib/engine/file_template.rb
slippers-0.0.12 lib/engine/file_template.rb
slippers-0.0.11 lib/engine/file_template.rb
slippers-0.0.10 lib/engine/file_template.rb