Class: FFWD::Plugin::Log::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/ffwd/plugin/log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Setup

Returns a new instance of Setup.



41
42
43
44
# File 'lib/ffwd/plugin/log.rb', line 41

def initialize config
  @config = config
  @config[:prefix] ||= DEFAULT_PREFIX
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



39
40
41
# File 'lib/ffwd/plugin/log.rb', line 39

def config
  @config
end

Instance Method Details

#connect(core) ⇒ Object



46
47
48
# File 'lib/ffwd/plugin/log.rb', line 46

def connect core
  Writer.new core, @config[:prefix]
end