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 ⇒ Object
- #respond_to_missing? ⇒ Boolean
Constructor Details
#initialize(name) ⇒ NoPlugin
Returns a new instance of NoPlugin.
11 12 13 |
# File 'lib/pry/plugins.rb', line 11 def initialize(name) @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
15 16 17 18 |
# File 'lib/pry/plugins.rb', line 15 def method_missing(*) warn "Warning: The plugin '#{@name}' was not found! (no gem found)" super end |
Instance Method Details
#respond_to_missing? ⇒ Boolean
20 21 22 |
# File 'lib/pry/plugins.rb', line 20 def respond_to_missing?(*) false end |