Exception: Yay::CouldntFindFileError
- Defined in:
- lib/yay/errors.rb
Overview
raised when include file resolution has failed
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#tried ⇒ Object
readonly
Returns the value of attribute tried.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(filename, tried) ⇒ CouldntFindFileError
constructor
A new instance of CouldntFindFileError.
- #printable_message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(filename, tried) ⇒ CouldntFindFileError
Returns a new instance of CouldntFindFileError.
127 128 129 130 |
# File 'lib/yay/errors.rb', line 127 def initialize filename, tried @filename = filename @tried = tried end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
124 125 126 |
# File 'lib/yay/errors.rb', line 124 def filename @filename end |
#tried ⇒ Object (readonly)
Returns the value of attribute tried.
125 126 127 |
# File 'lib/yay/errors.rb', line 125 def tried @tried end |
Instance Method Details
#printable_message ⇒ Object
132 133 134 |
# File 'lib/yay/errors.rb', line 132 def return "Failed to load file \"#{filename}\"#{printable_position}\nPlaced looked:\n #{tried.join("\n ")}" end |