Module: Rorr::Base
Instance Method Summary collapse
Instance Method Details
#generate_file_base_path ⇒ Object
11 12 13 |
# File 'lib/rorr/base.rb', line 11 def generate_file_base_path Config.path_prefix + "/rorr/#{Config.level}" end |
#read_template(path) ⇒ Object
7 8 9 |
# File 'lib/rorr/base.rb', line 7 def read_template(path) ERB.new(File.read(path), nil, '-').result(binding) end |
#templates_path ⇒ Object
3 4 5 |
# File 'lib/rorr/base.rb', line 3 def templates_path File.('../../../templates', __FILE__) end |