Exception: Omnibus::MissingTemplate
- Defined in:
- lib/omnibus/exceptions.rb
Instance Method Summary collapse
-
#initialize(template, search_paths) ⇒ MissingTemplate
constructor
A new instance of MissingTemplate.
- #to_s ⇒ Object
Constructor Details
#initialize(template, search_paths) ⇒ MissingTemplate
Returns a new instance of MissingTemplate.
84 85 86 |
# File 'lib/omnibus/exceptions.rb', line 84 def initialize(template, search_paths) @template, @search_paths = template, search_paths end |
Instance Method Details
#to_s ⇒ Object
88 89 90 91 92 93 94 95 |
# File 'lib/omnibus/exceptions.rb', line 88 def to_s " Attempting to evaluate the template `\#{@template}', but it was not found at any of\n the following locations:\n\n \#{@search_paths.map { |path| \" \#{path}\" }.join(\"\\n\")}\n EOH\nend\n" |