Exception: Flows::Plugin::Interface::MissingMethodsError

Inherits:
Error
  • Object
show all
Defined in:
lib/flows/plugin/interface.rb

Overview

Raised when you're missed some dependency.

Since:

  • 0.4.0

Instance Method Summary collapse

Constructor Details

#initialize(klass, names) ⇒ MissingMethodsError

Returns a new instance of MissingMethodsError.

Since:

  • 0.4.0



47
48
49
50
# File 'lib/flows/plugin/interface.rb', line 47

def initialize(klass, names)
  @klass = klass
  @names = names
end

Instance Method Details

#messageObject

Since:

  • 0.4.0



52
53
54
# File 'lib/flows/plugin/interface.rb', line 52

def message
  "Methods required by interface for #{@klass} are missing: #{@names.map(&:to_s).join(', ')}"
end