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


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_missingObject


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

Returns:

  • (Boolean)

20
21
22
# File 'lib/pry/plugins.rb', line 20

def respond_to_missing?(*)
  false
end