Exception: Yay::CouldntFindFileError
- Defined in:
- lib/yay/errors.rb
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.
77 78 79 80 |
# File 'lib/yay/errors.rb', line 77 def initialize filename, tried @filename = filename @tried = tried end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
74 75 76 |
# File 'lib/yay/errors.rb', line 74 def filename @filename end |
#tried ⇒ Object (readonly)
Returns the value of attribute tried.
75 76 77 |
# File 'lib/yay/errors.rb', line 75 def tried @tried end |
Instance Method Details
#printable_message ⇒ Object
82 83 84 |
# File 'lib/yay/errors.rb', line 82 def return "Failed to load file \"#{filename}\"#{printable_position}\nPlaced looked:\n #{tried.join("\n ")}" end |