Exception: Renogen::Exceptions::YamlFileBlank
- Defined in:
- lib/renogen/exceptions/yaml_file_blank.rb
Overview
This is raised when a yaml file change is found but has not contents
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ YamlFileBlank
constructor
A new instance of YamlFileBlank.
-
#message ⇒ String
Friendly error message.
Constructor Details
#initialize(file_path) ⇒ YamlFileBlank
Returns a new instance of YamlFileBlank.
7 8 9 10 |
# File 'lib/renogen/exceptions/yaml_file_blank.rb', line 7 def initialize(file_path) @file_path = file_path super end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
5 6 7 |
# File 'lib/renogen/exceptions/yaml_file_blank.rb', line 5 def file_path @file_path end |
Instance Method Details
#message ⇒ String
Friendly error message
15 16 17 |
# File 'lib/renogen/exceptions/yaml_file_blank.rb', line 15 def "Error: File contents blank '#{file_path}'" end |