Class: Pry::PluginManager::NoPlugin
Overview
Placeholder when no associated gem found, displays warning
Instance Method Summary collapse
-
#initialize(name) ⇒ NoPlugin
constructor
A new instance of NoPlugin.
- #method_missing(*args) ⇒ Object
Constructor Details
#initialize(name) ⇒ NoPlugin
Returns a new instance of NoPlugin.
7 8 9 |
# File 'lib/pry/plugins.rb', line 7 def initialize(name) @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
11 12 13 |
# File 'lib/pry/plugins.rb', line 11 def method_missing(*args) warn "Warning: The plugin '#{@name}' was not found! (no gem found)" end |