lib/vedeu/support/template.rb in vedeu-0.4.18 vs lib/vedeu/support/template.rb in vedeu-0.4.19
- old
+ new
@@ -1,11 +1,8 @@
-require 'erb'
-
module Vedeu
# Generic class to loading a template and parsing it via ERb.
- #
class Template
# @param object [Class]
# @param path [String]
# @return [void]
@@ -25,14 +22,16 @@
# @return [void]
def parse
ERB.new(load, nil, '-').result(binding)
end
- private
+ protected
# @!attribute [r] object
# @return [Class]
attr_reader :object
+
+ private
# @return [String]
def load
File.read(path)
end