Exception: Guard::Guardfile::Generator::NoSuchPlugin
- Inherits:
-
Error
- Object
- RuntimeError
- Error
- Guard::Guardfile::Generator::NoSuchPlugin
- Defined in:
- lib/guard/guardfile/generator.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#plugin_name ⇒ Object
readonly
Returns the value of attribute plugin_name.
Instance Method Summary collapse
-
#initialize(plugin_name) ⇒ NoSuchPlugin
constructor
A new instance of NoSuchPlugin.
- #message ⇒ Object
Constructor Details
#initialize(plugin_name) ⇒ NoSuchPlugin
Returns a new instance of NoSuchPlugin.
41 42 43 44 |
# File 'lib/guard/guardfile/generator.rb', line 41 def initialize(plugin_name) @plugin_name = plugin_name @class_name = plugin_name.delete("-").capitalize end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
39 40 41 |
# File 'lib/guard/guardfile/generator.rb', line 39 def class_name @class_name end |
#plugin_name ⇒ Object (readonly)
Returns the value of attribute plugin_name.
39 40 41 |
# File 'lib/guard/guardfile/generator.rb', line 39 def plugin_name @plugin_name end |
Instance Method Details
#message ⇒ Object
46 47 48 49 50 |
# File 'lib/guard/guardfile/generator.rb', line 46 def "Could not load 'guard/#{plugin_name}'"\ " or '~/.guard/templates/#{plugin_name}'"\ " or find class Guard::#{class_name}\n" end |