Sha256: b887daeda6d124cecddf904711dc35db0bb27b0c3608fea01cba60cb84d1f73b
Contents?: true
Size: 1.07 KB
Versions: 19
Compression:
Stored size: 1.07 KB
Contents
module Nucleon module Plugin class Event < Base #----------------------------------------------------------------------------- # Event plugin interface #----------------------------------------------------------------------------- # Property accessor / modifiers #----------------------------------------------------------------------------- # Operations def render return name end #--- def check(source) # Implement in sub classes return true end #----------------------------------------------------------------------------- # Utilities def self.build_info(type, data) data = data.split(/\s*,\s*/) if data.is_a?(String) return super(type, data) end #--- def self.translate(data) options = super(data) case data when String components = data.split(':') options[:provider] = components.shift options[:string] = components.join(':') logger.debug("Translating event options: #{options.inspect}") end return options end end end end
Version data entries
19 entries across 19 versions & 1 rubygems