Sha256: 0cba42dcc23303cbc670c6bbef40611a0ffe62241073d48d2253e815a1ee27b4
Contents?: true
Size: 891 Bytes
Versions: 19
Compression:
Stored size: 891 Bytes
Contents
module Nucleon module Plugin class Translator < Base #----------------------------------------------------------------------------- # Translator plugin interface #----------------------------------------------------------------------------- # Property accessor / modifiers #----------------------------------------------------------------------------- # Operations def parse(raw) logger.debug("Parsing raw data: #{raw}") properties = {} properties = yield(properties) if block_given? logger.debug("Completed parsing data: #{properties.inspect}") return properties end #--- def generate(properties) logger.debug("Generating output data: #{properties.inspect}") output = '' output = yield(output) if block_given? logger.debug("Completed generating data: #{output}") return output end end end end
Version data entries
19 entries across 19 versions & 1 rubygems