Class: BetterCap::Pluggable

Inherits:
Object
  • Object
show all
Defined in:
lib/bettercap/pluggable.rb

Overview

Simple base class for modules and plugins of various types.

Constant Summary collapse

@@metadata =
{
  'Name'        => '',
  'Version'     => '',
  'Author'      => "Simone 'evilsocket' Margaritelli",
  'License'     => 'GPL3',
  'Description' => ''
}

Class Method Summary collapse

Class Method Details

.meta(meta = {}) ⇒ Object

Define the metadata for this module.



26
27
28
29
30
# File 'lib/bettercap/pluggable.rb', line 26

def self.meta(meta = {})
  meta.each do |key,value|
    @@metadata[key] = value
  end
end

.metadataObject

Get the metadata of this module.



33
34
35
# File 'lib/bettercap/pluggable.rb', line 33

def self.
  @@metadata
end