Exception: Spring::UnknownProject
- Inherits:
-
StandardError
- Object
- StandardError
- Spring::UnknownProject
- Defined in:
- lib/spring/errors.rb
Instance Attribute Summary collapse
-
#current_dir ⇒ Object
readonly
Returns the value of attribute current_dir.
Instance Method Summary collapse
-
#initialize(current_dir) ⇒ UnknownProject
constructor
A new instance of UnknownProject.
- #message ⇒ Object
Constructor Details
#initialize(current_dir) ⇒ UnknownProject
Returns a new instance of UnknownProject.
7 8 9 |
# File 'lib/spring/errors.rb', line 7 def initialize(current_dir) @current_dir = current_dir end |
Instance Attribute Details
#current_dir ⇒ Object (readonly)
Returns the value of attribute current_dir.
5 6 7 |
# File 'lib/spring/errors.rb', line 5 def current_dir @current_dir end |
Instance Method Details
#message ⇒ Object
11 12 13 14 15 |
# File 'lib/spring/errors.rb', line 11 def "Spring was unable to locate the root of your project. There was no Gemfile " \ "present in the current directory (#{current_dir}) or any of the parent " \ "directories." end |