Class: BetterCap::Pluggable
- Inherits:
-
Object
- Object
- BetterCap::Pluggable
- Defined in:
- lib/bettercap/pluggable.rb
Overview
Simple base class for modules and plugins of various types.
Direct Known Subclasses
BetterCap::Proxy::HTTP::Module, BetterCap::Proxy::TCP::Module
Constant Summary collapse
- @@metadata =
{ 'Name' => '', 'Version' => '', 'Author' => "Simone 'evilsocket' Margaritelli", 'License' => 'GPL3', 'Description' => '' }
Class Method Summary collapse
-
.meta(meta = {}) ⇒ Object
Define the metadata for this module.
-
.metadata ⇒ Object
Get the metadata of this module.
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.( = {}) .each do |key,value| @@metadata[key] = value end end |
.metadata ⇒ Object
Get the metadata of this module.
33 34 35 |
# File 'lib/bettercap/pluggable.rb', line 33 def self. @@metadata end |