Class: Pry::PluginManager::NoPlugin

Inherits:
Object
  • Object
show all
Defined in:
lib/pry/plugins.rb

Overview

Placeholder when no associated gem found, displays warning

Instance Method Summary collapse

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