class Kafo::DataTypeParser
Constants
- TYPE_DEFINITION
Attributes
types[R]
Public Class Methods
new(manifest)
click to toggle source
# File lib/kafo/data_type_parser.rb, line 9 def initialize(manifest) @logger = KafoConfigure.logger @types = {} manifest.each_line do |line| if (type = TYPE_DEFINITION.match(line.force_encoding("UTF-8"))) @types[type[1]] = type[2] end end end
Public Instance Methods
register()
click to toggle source
# File lib/kafo/data_type_parser.rb, line 19 def register @types.each do |name,target| @logger.debug("Registering extended data type #{name}") DataType.register_type(name, target) end end