module Rorr::Base

Public Instance Methods

generate_file_base_path() click to toggle source
# File lib/rorr/base.rb, line 11
def generate_file_base_path
  Config.path_prefix + "/rorr/#{Config.level}"
end
read_template(path) click to toggle source
# File lib/rorr/base.rb, line 7
def read_template(path)
  ERB.new(File.read(path), nil, '-').result(binding)
end
templates_path() click to toggle source
# File lib/rorr/base.rb, line 3
def templates_path
  File.expand_path('../../../templates', __FILE__)
end