Sha256: d4f463aeda418e06ac2979f660bfc5559bf2ce307c2b89a7fe71ebc3b51ddc5a
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
module Troo class Template include DecoratorHelpers class << self def parse(object, path) new(object, path).parse end end def initialize(object, path) @object, @path = object, path end def parse ERB.new(load, nil, '-').result(binding) end private attr_reader :object, :path def load File.read(File.dirname(__FILE__) + path) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.10 | lib/troo/presentation/template.rb |