Class: Proctor::TemplateFile
- Inherits:
-
Object
- Object
- Proctor::TemplateFile
- Defined in:
- lib/proctor/template_file.rb
Instance Attribute Summary collapse
-
#config_data ⇒ Object
readonly
Returns the value of attribute config_data.
Instance Method Summary collapse
-
#initialize(filename) ⇒ TemplateFile
constructor
A new instance of TemplateFile.
Constructor Details
#initialize(filename) ⇒ TemplateFile
7 8 9 10 11 |
# File 'lib/proctor/template_file.rb', line 7 def initialize(filename) check_file_existence(filename) @config_data = load_data(filename) check_data_format(filename) end |
Instance Attribute Details
#config_data ⇒ Object (readonly)
Returns the value of attribute config_data.
5 6 7 |
# File 'lib/proctor/template_file.rb', line 5 def config_data @config_data end |