Class: Slugforge::SluginManager::NoSlugin
- Inherits:
-
Object
- Object
- Slugforge::SluginManager::NoSlugin
- Defined in:
- lib/slugforge/slugins.rb
Overview
Placeholder when no associated gem found, displays warning
Instance Method Summary collapse
-
#initialize(name) ⇒ NoSlugin
constructor
A new instance of NoSlugin.
- #method_missing(*args) ⇒ Object
Constructor Details
#initialize(name) ⇒ NoSlugin
Returns a new instance of NoSlugin.
10 11 12 |
# File 'lib/slugforge/slugins.rb', line 10 def initialize(name) @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
14 15 16 |
# File 'lib/slugforge/slugins.rb', line 14 def method_missing(*args) warn "Warning: The slugin '#{@name}' was not found! (no gem found)" end |