Module: Rorr::Base

Included in:
Score, TestPass
Defined in:
lib/rorr/base.rb

Instance Method Summary collapse

Instance Method Details

#generate_file_base_pathObject



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_pathObject



3
4
5
# File 'lib/rorr/base.rb', line 3

def templates_path
  File.expand_path('../../../templates', __FILE__)
end