Module: Eggshell::BaseHandler

Included in:
BlockHandler, MacroHandler
Defined in:
lib/eggshell.rb

Overview

Core interface for plugins.

Instance Method Summary collapse

Instance Method Details

#set_processor(proc, opts = nil) ⇒ Object

Lets the handler attach itself to the processor instance. a subset of possible actions. Think of this as a way to sandbox behavior.

Parameters:

  • Eggshell::Processor

    proc

  • Hash

    opts Optional parameters. Potential use cases might include only handling



41
42
43
# File 'lib/eggshell.rb', line 41

def set_processor(proc, opts = nil)
	@eggshell = proc
end